>

Redhat6.6离线源码安装CR-V3.4.3

- 编辑:乐百家599手机首页 -

Redhat6.6离线源码安装CR-V3.4.3

本田CR-V-3.3.1源码安装,r-3.3.1源码

标签:r3.3.1 源码 消除注重关系

1、yum install readline-devel

2、yum install libXt-devel

3、tar zxvf R-3.3.1.tar.gz

cd R-3.3.1

    ./configure --prefix=/opt/R-3.3.1   --enable-R-shlib

    报错:

    checking for zlib.h... yes

    checking if zlib version >= 1.2.5... no

    checking whether zlib support suffices... configure: error: zlib library and headers are required  ##缺少zlib或许zlib版本过低

4、安装zlib

tar xvf zlib-1.2.8.tar.gz

tar xvf zlib-1.2.8.tar.gz

cd zlib-1.2.8

./configure --prefix=/opt/zlib-1.2.8

make && make install

5、cd /root/R-3.3.1

./configure --prefix=/opt/R-3.3.1   --enable-R-shlib LDFLAGS="-L/opt/zlib-1.2.8/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include"

报错:

checking for zlib.h... yes

checking if zlib version >= 1.2.5... yes

checking whether zlib support suffices... yes

checking mmap support for zlib... yes

checking for BZ2_bzlibVersion in -lbz2... no

checking whether bzip2 support suffices... configure: error: bzip2 library and headers are required  ##zlib版本已经吻合供给,紧缺bzip2

6、安装bzip2

tar zxvf bzip2-1.0.6.tar.gz

cd bzip2-1.0.6

make -f Makefile-libbz2_so

make clean

make 

make install PREFIX=/opt/bzip2-1.0.6

7、./configure --prefix=/opt/R-3.3.1   --enable-R-shlib LDFLAGS="-L/opt/zlib-1.2.8/lib -L/opt/bzip2-1.0.6/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include"

报错:

checking if bzip2 version >= 1.0.6... yes

checking whether bzip2 support suffices... no

checking for lzma_version_number in -llzma... no  ##bzip2版本切合供给,可是lzma(xz软件包)缺乏

8、安装xz

tar zxvf xz-5.2.2.tar.gz

cd /root/xz-5.2.2

./configure --prefix=/opt/xz-5.2.2

make -j3

make install

9、./configure --prefix=/opt/R-3.3.1   --enable-R-shlib LDFLAGS="-L/opt/zlib-1.2.8/lib -L/opt/bzip2-1.0.6/lib -L/opt/xz-5.2.2/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include -I/opt/xz-5.2.2/include"

报错:

checking whether bzip2 support suffices... no

checking for lzma_version_number in -llzma... yes

checking lzma.h usability... yes

checking lzma.h presence... yes

checking for lzma.h... yes

checking if lzma version >= 5.0.3... yes

checking for pcre_fullinfo in -lpcre... no     

checking whether PCRE support suffices... configure: error: pcre >= 8.10 library and headers are required  ##xz版本切合须要,prce版本过低可能贫乏

10、安装pcre

tar zxvf pcre-8.39.tar.gz

cd /root/pcre-8.39

./configure  --prefix=/opt/pcre-8.39

make -j3 && make install

11、./configure --prefix=/opt/R-3.3.1   --enable-R-shlib LDFLAGS="-L/opt/zlib-1.2.8/lib -L/opt/bzip2-1.0.6/lib -L/opt/xz-5.2.2/lib -L/opt/pcre-8.39/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include -I/opt/xz-5.2.2/include -I/opt/pcre-8.39/include"

报错:

checking for pcre.h... yes

checking pcre/pcre.h usability... no

checking pcre/pcre.h presence... no

checking for pcre/pcre.h... no

checking if PCRE version >= 8.10, < 10.0 and has UTF-8 support... no

checking whether PCRE support suffices... configure: error: pcre >= 8.10 library and headers are required   ##PCRE须要安装--enable-utf8

12、重新安装pcre

rm -rf /opt/pcre-8.39

cd /root/pcre-8.39  

./configure  --prefix=/opt/pcre-8.39  --enable-utf8

make -j3 && make install

13、./configure --prefix=/opt/R-3.3.1   --enable-R-shlib LDFLAGS="-L/opt/zlib-1.2.8/lib -L/opt/bzip2-1.0.6/lib -L/opt/xz-5.2.2/lib -L/opt/pcre-8.39/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include -I/opt/xz-5.2.2/include -I/opt/pcre-8.39/include/"

报错:

checking pcre/pcre.h usability... no

checking pcre/pcre.h presence... no

checking for pcre/pcre.h... no

checking if PCRE version >= 8.10, < 10.0 and has UTF-8 support... yes

checking if PCRE version >= 8.32... yes

checking whether PCRE support suffices... yes

checking for curl-config... no

checking curl/curl.h usability... no

checking curl/curl.h presence... no

checking for curl/curl.h... no

configure: error: libcurl >= 7.28.0 library and headers are required with support for https    ##内需设置curl

14、安装curl

tar zxvf curl-7.50.1.tar.gz

cd /root/curl-7.50.1

./configure  --prefix=/opt/curl-7.50.1

make && make install

15、./configure --prefix=/opt/R-3.3.1 --enable-R-shlib  LDFLAGS="-L/opt/zlib-1.2.8/lib  -L/opt/bzip2-1.0.6/lib -L/opt/xz-5.2.2/lib -L/opt/pcre-8.39/lib -L/opt/curl-7.50.1/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include -I/opt/xz-5.2.2/include -I/opt/pcre-8.39/include -I/opt/curl-7.50.1/include"

报错:

checking curl/curl.h usability... yes

checking curl/curl.h presence... yes

checking for curl/curl.h... yes

checking if libcurl is version 7 and >= 7.28.0... yes

checking if libcurl supports https... no

configure: error: libcurl >= 7.28.0 library and headers are required with support for https  ##那是一个深水湾须求在情况变量中增加curl的bin路线,若无报错,那自然是在此以前系统私下认可安装的curl形成的,为了

                                                                                               消灭潜在危机,是不是有报错,请必得实施上边包车型大巴操作,系统暗中认可安装的curl请保留,幸免形成其他系统程序正视缺点和失误

16、最终操作

    ./configure --prefix=/opt/R-3.3.1 --enable-R-shlib  LDFLAGS="-L/opt/zlib-1.2.8/lib  -L/opt/bzip2-1.0.6/lib -L/opt/xz-5.2.2/lib -L/opt/pcre-8.39/lib -L/opt/curl-7.50.1/lib" CPPFLAGS="-I/opt/zlib-1.2.8/include -I/opt/bzip2-1.0.6/include -I/opt/xz-5.2.2/include -I/opt/pcre-8.39/include -I/opt/curl-7.50.1/include"

vim /etc/profile 

export PATH=$PATH:$JAVA_HOME/bin:/opt/curl-7.50.1/bin                    ##在此生龙活虎行加上":/opt/curl-7.50.1/bin"

    source /etc/profile                                                      ##让意况变量立马生效

验证;

echo $PATH

/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/opt/java/jdk1.8.0_74/bin:/opt/curl-7.50.1/bin

    make

make install

vim /etc/profile      ##加多宝马X5源遇到变量

export PATH=$PATH:$JAVA_HOME/bin:/opt/curl-7.50.1/bin:/opt/R-3.3.1/bin

    source /etc/profile   ##让情状变量立马生效

4. 安装际遇变量

(1)export LD_LIBRARY_PATH=$PKGS/zlib/lib:$PKGS/bzip/lib:$PKGS/xz/lib:$PKGS/pcre/lib/:$PKGS/curl/lib/:$PKGS/openssl/lib

(2)export PATH=$PKGS/zlib/bin:$PKGS/bzip/bin:$PKGS/xz/bin:$PKGS/pcre/bin/:$PKGS/curl/bin/:$PKGS/openssl/bin:$PATH

/usr/local/lib/libreadline.so: undefinedreference to `tgoto'

--------------------------------------分割线

重在软件版本:
nginx-1.6.0
php-5.3.5
mysql-5.5.6
  yum源配置(其实没什么改造)
[root@ipython ~]# cat /etc/yum.repos.d/1.repo
[1]
name=1
baseurl=file:///media
enabled=1
gpgcheck=0

[root@ipython ~]# mount /dev/cdrom /media && yum clean all
mount: /dev/sr0 is write-protected, mounting read-only
Loaded plugins: fastestmirror
Cleaning repos: 1
Cleaning up everything
  编写翻译工具安装
[root@ipython ~]# yum install gcc-c automake autoconf bzip2
  zlib库(提供数据压缩用的函式库卡塔尔国:
[root@ipython lnmp]# tar zxf zlib-1.2.8.tar.gz
[root@ipython lnmp]# cd zlib-1.2.8
[root@ipython zlib-1.2.8]# ./configure --prefix=/software/sharelib
[root@ipython zlib-1.2.8]# make && make install
  pcre库(rewrite的支持)
[root@ipython lnmp]# tar zxf pcre-8.35.tar.gz
[root@ipython lnmp]# cd pcre-8.35
[root@ipython pcre-8.35]# ./configure --prefix=/software/pcre --enable-utf8 --enable-unicode-properties
[root@ipython pcre-8.35]# make && make install
  OpenSSL库(https的支持)
[root@ipython lnmp]# tar zxf openssl-1.0.1h.tar.gz
[root@ipython lnmp]# cd openssl-1.0.1h
[root@ipython openssl-1.0.1h]# ./config --prefix=/software/openssl
[root@ipython openssl-1.0.1h]# make && make install
  TCMalloc工具(google内部存款和储蓄器管理套件卡塔尔国
[root@ipython lnmp]# tar zxf libunwind-1.1.tar.gz
[root@ipython lnmp]# cd libunwind-1.1
[root@ipython libunwind-1.1]# CFLAGS=-fPIC ./configure --prefix=/software/google-libunwind
[root@ipython libunwind-1.1]# make CFLAGS=-fPIC && make CFLAGS=-fPIC install

[root@ipython lnmp]# tar zxf gperftools-2.2.tar.gz
[root@ipython lnmp]# cd gperftools-2.2
[root@ipython gperftools-2.2]# LDFLAGS="-L/software/google-libunwind/lib" CPPFLAGS="-I/software/google-libunwind/include" ./configure --prefix=/software/google-perftools
[root@ipython gperftools-2.2]# make && make install

###路径加到动态链接库###
[root@ipython gperftools-2.2]# echo "/software/google-libunwind/lib/" >> /etc/ld.so.conf
[root@ipython gperftools-2.2]# echo "/software/google-perftools/lib/" >> /etc/ld.so.conf
[root@ipython gperftools-2.2]# echo "/software/sharelib/lib/" >> /etc/ld.so.conf && ldconfig
  Nginx(不解释)
[root@ipython lnmp]# groupadd -g 1500 nginx
[root@ipython lnmp]# useradd -M -u 1500 -g nginx -s /sbin/nologin nginx
[root@ipython lnmp]# mkdir /var/tmp/nginx
[root@ipython lnmp]# chown nginx:nginx /var/tmp/nginx/
[root@ipython lnmp]# tar zxf nginx-1.6.0.tar.gz
[root@ipython lnmp]# cd nginx-1.6.0
[root@ipython nginx-1.6.0]# sed -i 's/CFLAGS="$CFLAGS -g"/#CFLAGS="$CFLAGS -g"/' auto/cc/gcc
[root@ipython nginx-1.6.0]# sed -i "s#/usr/local#/software/google-perftools#" auto/lib/google-perftools/conf
##配备参数有一点长##
[root@ipython nginx-1.6.0]# ./configure --prefix=/software/nginx --user=nginx --group=nginx --with-http_stub_status_module --with-http_ssl_module --with-http_realip_module --with-http_gzip_static_module --with-debug --http-client-body-temp-path=/var/tmp/nginx/client --http-proxy-temp-path=/var/tmp/nginx/proxy --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-pcre=/root/lnmp/pcre-8.35 --with-openssl=/root/lnmp/openssl-1.0.1h --with-zlib=/root/lnmp/zlib-1.2.8 --with-google_perftools_module
[root@ipython nginx-1.6.0]# make && make install

[root@ipython nginx-1.6.0]# mkdir /tmp/tcmalloc
[root@ipython nginx-1.6.0]# chmod 0777 /tmp/tcmalloc/
###那文件在附属类小零件里###
[root@ipython nginx-1.6.0]# cp ../nginx.conf /software/nginx/conf/
[root@ipython nginx-1.6.0]# cp ../fcgi.conf /software/nginx/conf/
[root@ipython nginx-1.6.0]# chmod 755 /etc/init.d/nginx
[root@ipython nginx-1.6.0]# mkdir /data/{logs,www.ipython.me}
[root@ipython nginx-1.6.0]# /software/nginx/sbin/nginx
[root@ipython nginx-1.6.0]# iptables -F
[root@ipython nginx-1.6.0]# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
[root@ipython nginx-1.6.0]# iptables -A INPUT -p tcp --dport 80 -j ACCEPT
[root@ipython nginx-1.6.0]# ps aux|grep nginx
root    61291  0.0  0.0  31120  896 ?        Ss  15:36  0:00 nginx: master process /software/nginx/sbin/nginx -c /software/nginx/conf/nginx.conf
nginx    61293  0.0  0.1  31560  1612 ?        S    15:36  0:00 nginx: worker process
  ncurses库(字符终端管理库卡塔尔国
[root@ipython lnmp]# tar jxf ncurses-5.9.tar.bz2
[root@ipython lnmp]# cd ncurses-5.9
[root@ipython ncurses-5.9]# ./configure --prefix=/software/ncurses --with-shared --without-debug
[root@ipython ncurses-5.9]# make && make install
  Mysql(数据库)
[root@ipython lnmp]# /usr/sbin/groupadd mysql
[root@ipython lnmp]# /usr/sbin/useradd -s /sbin/nologin -g mysql mysql
[root@ipython lnmp]# tar zxf mysql-5.5.6-rc.tar.gz
[root@ipython lnmp]# cd mysql-5.5.6-rc
[root@ipython mysql-5.5.6-rc]# ./configure --prefix=/software/mysql/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=partition,innobase,myisammrg --with-named-curses-libs=/software/ncurses/lib/libncurses.so.5
[root@ipython mysql-5.5.6-rc]# make && make install
[root@ipython mysql-5.5.6-rc]# mkdir /data/mysql/{binlog,relaylog} -p
[乐百家服务器,root@ipython mysql-5.5.6-rc]# chown -R mysql:mysql /data/mysql
[root@ipython mysql-5.5.6-rc]# /software/mysql/bin/mysql_install_db --basedir=/software/mysql/ --datadir=/data/mysql/ --user=mysql
###那文件在附属类小零件里###
[root@ipython mysql-5.5.6-rc]# cp ../my.cnf /etc/my.cnf
[root@ipython mysql-5.5.6-rc]# cp ../mysqld /etc/init.d/mysqld
[root@ipython mysql-5.5.6-rc]# chmod 755 /etc/init.d/mysqld
[root@ipython mysql-5.5.6-rc]# systemctl enable mysqld
[root@ipython mysql-5.5.6-rc]# systemctl start mysqld

[root@ipython mysql-5.5.6-rc]# ps aux | grep mysqld
root    55475  0.1  0.1 115348  1696 ?        S    16:07  0:00 /bin/sh /software/mysql/bin/mysqld_safe --datadir=/data/mysql --pid-file=/data/mysql/mysql.pid
mysql    56342  2.7 11.9 1918248 120680 ?      Sl  16:07  0:01 /software/mysql/libexec/mysqld --basedir=/software/mysql --datadir=/data/mysql --plugin-dir=/software/mysql/lib/mysql/plugin --user=mysql --log-error=/data/mysql/mysql_error.log --open-files-limit=10240 --pid-file=/data/mysql/mysql.pid --socket=/tmp/mysql.sock --port=3306
  libiconv库(字符编码调换卡塔尔
[root@ipython lnmp]# tar zxf libiconv-1.14.tar.gz
###打补丁吧,幸免手动修正隐患逻辑错误###
[root@ipython lnmp]# gzip -d libiconv-glibc-2.16.patch.gz 
[root@ipython lnmp]# cd libiconv-1.14/srclib
[root@ipython srclib]# patch -p1 < ../../libiconv-glibc-2.16.patch
patching file stdio.in.h
[root@ipython libiconv-1.14]# cd ..
[root@ipython libiconv-1.14]# ./configure --prefix=/software/sharelib/
[root@ipython libiconv-1.14]# make && make install
  libxml库(XML库)
[root@ipython lnmp]# tar jxf libxml2-2.8.0.tar.bz2
[root@ipython lnmp]# cd libxml2-2.8.0
[root@ipython libxml2-2.8.0]# ./configure --prefix=/software/sharelib
[root@ipython libxml2-2.8.0]# make && make install
  libpng库(图片库)
[root@ipython lnmp]# tar jxf libpng-1.6.8.tar.bz2
[root@ipython lnmp]# cd libpng-1.6.8
[root@ipython libpng-1.6.8]# LDFLAGS="-L/software/sharelib/lib/" CPPFLAGS="-I/software/sharelib/include" ./configure --prefix=/software/sharelib
[root@ipython libpng-1.6.8]# make && make install
  jpeg库(图片库)
[root@ipython lnmp]# tar jxf jpegsrc.v9a.tar.bz2
[root@ipython lnmp]# cd jpeg-9a/
[root@ipython jpeg-9a]# ./configure --prefix=/software/sharelib/
[root@ipython jpeg-9a]# make && make install
  freetype(字库)
[root@ipython lnmp]# tar jxf freetype-2.5.2.tar.bz2
[root@ipython lnmp]# cd freetype-2.5.2
[root@ipython freetype-2.5.2]# LIBPNG_CFLAGS="-I/software/sharelib/include/" LIBPNG_LDFLAGS="-L/software/sharelib/lib/" ./configure --prefix=/software/sharelib
[root@ipython freetype-2.5.2]# make && make install
[root@ipython freetype-2.5.2]# ln -s /software/sharelib/include/freetype2 /software/sharelib/include/freetype2/freetype
  libmcrypt库(加密算法)
[root@ipython lnmp]# tar jxf libmcrypt-2.5.8.tar.bz2
[root@ipython lnmp]# cd libmcrypt-2.5.8
[root@ipython libmcrypt-2.5.8]# ./configure --prefix=/software/sharelib
[root@ipython libmcrypt-2.5.8]# make && make install
  mhash库(加密)
[root@ipython lnmp]# tar jxf mhash-0.9.9.9.tar.bz2
[root@ipython lnmp]# cd mhash-0.9.9.9
[root@ipython mhash-0.9.9.9]# ./configure --prefix=/software/sharelib/
[root@ipython mhash-0.9.9.9]# make && make install
  curl库(URL传输)
[root@ipython lnmp]# tar jxf curl-7.36.0.tar.bz2
[root@ipython lnmp]# cd curl-7.36.0
[root@ipython curl-7.36.0]# ./configure --prefix=/software/curl
[root@ipython curl-7.36.0]# make && make install
  gd库(绘图)
[root@ipython lnmp]# tar zxf gd-2.0.35.tar.gz
[root@ipython lnmp]# cd gd-2.0.35
[root@ipython gd-2.0.35]# LDFLAGS="-L/software/sharelib/lib" CPPFLAGS="-I/software/sharelib/include" ./configure --prefix=/software/sharelib --enable-shared --with-png=/software/sharelib --with-freetype=/software/sharelib --with-libiconv-prefix=/software/sharelib --with-jpeg=/software/sharelib
[root@ipython gd-2.0.35]# make && make install
  libtool(库编写翻译扶助卡塔尔国
[root@ipython lnmp]# tar zxf libtool-2.4.2.tar.gz
[root@ipython lnmp]# cd libtool-2.4.2
[root@ipython libtool-2.4.2]# ./configure --prefix=/software/sharelib/ --enable-ltdl-install
[root@ipython libtool-2.4.2]# make && make install
  将mysql的库文件参加动态分享
[root@ipython lnmp]# echo "/software/mysql/lib/mysql/" >> /etc/ld.so.conf && ldconfig
  PHP(意气风发种语言吧)
[root@ipython lnmp]# tar zxf php-5.3.5.tar.gz
[root@ipython lnmp]# cd php-5.3.5
[root@ipython php-5.3.5]# sed -i s"#mysql/psi/psi.h#/software/mysql/include/mysql/psi/psi.h#" /software/mysql/include/mysql/my_sys.h
[root@ipython php-5.3.5]# sed -i s"#mysql/plugin.h#/software/mysql/include/mysql/plugin.h#www.lo599.com," /software/mysql/include/mysql/m_string.h
[root@ipython php-5.3.5]# sed -i s"#mysql/services.h#/software/mysql/include/mysql/services.h#" /software/mysql/include/mysql/plugin.h
[root@ipython php-5.3.5]# sed -i s"#mysql/service_my_snprintf.h#/software/mysql/include/mysql/service_my_snprintf.h#" /software/mysql/include/mysql/services.h
[root@ipython php-5.3.5]# sed -i s"#mysql/service_thd_alloc.h#/software/mysql/include/mysql/service_thd_alloc.h#" /software/mysql/include/mysql/services.h
[root@ipython php-5.3.5]# ./configure --prefix=/software/php --with-config-file-path=/software/php/etc --with-mysql=/software/mysql --with-mysqli=/software/mysql/bin/mysql_config --with-iconv-dir=/software/sharelib --disable-ipv6 --with-freetype-dir=/software/sharelib/ --with-jpeg-dir=/software/sharelib/ --with-png-dir=/software/sharelib/ --with-zlib=/software/sharelib/ --with-libxml-dir=/software/sharelib/ --disable-rpath --enable-bcmath --enable-safe-mode --enable-shmop --enable-sysvsem --with-curl=/software/curl/ --enable-fpm --enable-mbstring  --with-mcrypt=/software/sharelib/ --with-gd=/software/sharelib/ --enable-gd-native-ttf --with-openssl=/software/openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-inline-optimization --with-curlwrappers --enable-mbregex --with-gettext
[root@ipython php-5.3.5]# make install

##制造PHP-FPM配置文件,参数什么的本身依据安顿调度##
[root@ipython php-5.3.5]# cat >> /software/php/etc/php-fpm.conf <
好了...看图

www.lo599.com 1

越多CentOS相关新闻见CentOS 专项论题页面 http://www.linuxidc.com/topicnews.aspx?tid=14

正文永世更新链接地址:http://www.linuxidc.com/Linux/2014-07/104247.htm

www.lo599.com 2

1. 安装安装路线

(1卡塔 尔(英语:State of Qatar)牧马人安装路线

         R_dir=/opt/R

(2卡塔尔依赖包安装路线

         PKGS=/opt/pkg

  (3)源码包所在路线

         SOURCE=/root/pkg

configure:32570: gcc -std=gnu99 -o conftest-g -O2 -fpic  -I/usr/local/include  -I/usr/include/libxml2-I/usr/local/include/pango-1.0 -I/usr/local/include/cairo-I/usr/local/include/harfbuzz -I/usr/local/include/freetype2-I/usr/local/include -I/usr/local/include/glib-2.0-I/usr/local/lib/glib-2.0/include -I/usr/local/include/pixman-1 -I/usr/local/include/libpng16  -L/usr/local/lib64 conftest.c -lrt -ldl-lm  -L/usr/local/lib -lpangocairo-1.0-lpango-1.0 -lgobject-2.0 -lglib-2.0 -lpng16 -lz -lcairo  >&5

LNMP(Linux-Nginx-Mysql-PHP),本文在CentOS 7.0上编写翻译LNMP尝尝鲜,全文基本上都是应用手动编写翻译安顿,重视yum帮作者设置了GCC和automake。写那几个事物资消耗费时间有一点久了。太花时间啊。

5. 安装ENCORE到钦命目录

(1)cd $SCOURE/R-3.4.3

(2)./configure --prefix=$R_dir --enable-R-shlib CPPFLAGS="-I$PKGS/zlib/include -I$PKGS/bzip/include -I$PKGS/xz/include -I$PKGS/pcre/include/ -I$PKGS/curl/include/ -I$PKGS/openssl/include" LDFLAGS="-L$PKGS/zlib/lib -L$PKGS/bzip/lib -L$PKGS/xz/lib -L$PKGS/pcre/lib/ -L$PKGS/curl/lib/ -L$PKGS/openssl/lib/"

(3)make -j4 && make install

  make

--------------------------------------分割线

Ubuntu 14.04 LTS 安装 LNMP NginxPHP5 (PHP-FPM)MySQL http://www.linuxidc.com/Linux/2014-05/102351.htm

Ubuntu 13.04 安装 LAMPVsftpdWebminphpMyAdmin 服务及安装 http://www.linuxidc.com/Linux/2013-06/86250.htm

CentOS 6.4 下的LNMP 临盆情状搭建及安装脚本 http://www.linuxidc.com/Linux/2013-11/92428.htm

生儿育女条件实用之LNMP架构的编写翻译安装 SSL加密实现 http://www.linuxidc.com/Linux/2013-05/85099.htm

LNMP 专职能编写翻译安装 for CentOS 6.3笔记 http://www.linuxidc.com/Linux/2013-05/83788.htm

CentOS 6.3 安装LNMP (PHP 5.4,MyySQL5.6) http://www.linuxidc.com/Linux/2013-04/82069.htm

在配备LNMP的时候境遇Nginx运转失利的2个难题 http://www.linuxidc.com/Linux/2013-03/81120.htm

Ubuntu安装Nginx php5-fpm MySQL(LNMP情状搭建) http://www.linuxidc.com/Linux/2012-10/72458.htm

3. 安装信赖源码包

(1)cd  $SCOURE/zlib-1.2.11

./configure --prefix=$PKGS/zlib && make -j4 && make install

(2)cd  $SCOURE/bzip2-1.0.6

make  CC='gcc -fPIC'  && make install PREFIX=$PKGS/bzip && make -f Makefile-libbz2_so

(3)cd  $SCOURE/xz-5.2.2

./configure --prefix=$PKGS/xz && make -j4 && make install

(4)cd  $SCOURE/pcre-8.36

./configure --enable-utf8 --prefix=$PKGS/pcre && make -j4 && make install

(5)cd  $SCOURE/openssl-1.0.1u

./config -fPIC --prefix=$PKGS/openssl enable-shared && ./config -t && make -j4 && make install

(6)cd  $SCOURE/curl-7.57.0

env PKG_CONFIG_PATH=$PKGS/openssl/lib/pkgconfig ./configure --with-ssl --enable-utf8 --prefix=$PKGS/curl && make -j4 && make install

  9)R CMD INSTALL lazyeval_0.2.0.tar.gz

2. 装置信任软件

(1)mount /dev/cdrom /mnt

(2)rm -rf /etc/yum.repos.d/*

(3)echo -e "[OS]nname=OSnbaseurl=file:///mntnenabled=1ngpgcheck=0" >> /etc/yum.repos.d/my.repo 

(4)yum clean all && yum makecache

(5)yum install -y gcc gcc-gfortran gcc-c readline-devel libXt-devel zlib-devel  bzip2-devel xz-devel.x86_64 texlive-latex

  1)安装xtrans-1.3.5

  ./configure --prefix=/usr/local

  5)安装jpeg-9b

 make install

还亟需设置gcc-c

To compile R, you need a FORTRAN compiler.

gcc -std=gnu99 -Wl,--export-dynamic-fopenmp  -L../../lib -L/usr/local/lib64-o R.bin Rmain.o  -lR -lRblas

 configure结果:

  4)安装libXt-1.1.5

Most systems with Gtk 2.8 or later installed willhave suitable libraries

  make install

codetools              Code Analysis Tools for R

  testsurfaces: no (disabled, use --enable-test-surfaces to enable)

option
  R安装ggplot2

  export PATH=$PATH:/opt/gcc-trunk/bin:/opt/R/bin

collect2: ld returned 1 exit status

 make

 zypper in ncurses-devel

 make

      TRUE        TRUE        TRUE        TRUE        TRUE        TRUE

class                  Functions for Classification

  make

|      return

then if suitable code can be compiled.

 11)R CMD INSTALL tibble_1.2.tar.gz

  ./configure --prefix=/usr/local

  make install

/usr/local/lib/libreadline.so: undefinedreference to `tputs'

/usr/local/lib/libreadline.so: undefinedreference to `PC'

  pdftesting:  no (requires poppler-glib>= 0.17.4)

 make

1.      R依赖

|      end

 make install

 ./configure --sysconfdir=/etc --prefix=/usr/local--mandir=/usr/share/man --enable-libxml2

R checks for pkg-config, and uses that to check firstthat the ‘pangocairo’ package is installed (and if not, ‘cairo’)

configure:23758: $? = 1

 digest, gtable (≥ 0.1.1),  plyr (≥ 1.7.1),reshape2, scales (≥ 0.4.1),  tibble, lazyeval

configure:32547: checking whether cairoincluding pango is >= 1.2 and works

 cairo-script-interpreter:  yes

  make install

全部注重关系:

 2.2安装libXt-1.1.5
  重视关系(a,b-> c  c信任于a,b)

 make

Rcpp                    Seamless R and C Integration

  make install

  9)安装libxcb-1.12

configure Lacrosse 时候报错:

 stringi,magrittr -> stringr -> reshape2

exportLIBRARY_PATH=$LIBRARY_PATH:/opt/gcc-trunk/lib:/opt/gcc-trunk/lib64

checking for X11/Intrinsic.h... no

../appl/dchdc.o: could not read symbols:Bad value

/opt/gcc-trunk/bin/gfortran

  1)安装util-macros-1.19.1

then if suitable code can be compiled.

/usr/local/lib/libreadline.so: undefinedreference to `tgetent'

configure:23893: error: cannot compile asimple Fortran program

 ./configure --prefix=/usr/local

  ./configure --prefix=/usr/local

/usr/local/lib/libreadline.so: undefinedreference to `tgetflag'

  make install

  5)安装xextproto-7.0.3

  make install

config.log中搜索"cannotcompile a simple Fortran program":

suse私下认可是未有gfortran编辑器,所以要求先安装它

  7)安装xcb-proto-1.12

dichromat              Color Schemes for Dichromats

 ./configure --prefix=/usr/local

 make install

../appl/dchdc.o: relocation R_X86_64_32against `.rodata' can not be used when making a shared object; recompile with-fPIC

 RColorBrewer,dichromat,(colorspace -> munsell),labeling -> scales

Cairo version 1.2.0 or later is required.

  6)编译libffi-3.2

tar -xvf gcc-trunk.tar -C /opt

  ./configure --prefix=/usr/local

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/gcc-trunk/lib64:/opt/gcc-trunk/lib

  ./configure --prefix=/usr/local

      NLS    profmem      cairo        ICU long.double    libcurl

                        Extended Rousseeuw etal.

configure: error: --with-x=yes (default)and X11 headers/libs are not available

  rpm-ivh --nodeps libxml2-devel-2.7.6-0.23.1.x86_64.rpm  --fontconfig需要

 8)vi /etc/profile

www.lo599.com 3

 ./configure --enable-R-shlib --with-readline=yes --with-jpeglib=yes--with-libpng=yes --with-x=yes --with-libtiff=yes --with-cairo=yes--with-ICU=yes --prefix=/opt/R

checking X11/Intrinsic.h presence... no

依傍关系:(a,b -> c  c信赖于a,b):

  make install

  PNGfunctions:  yes

 16)R CMD INSTALL labeling_0.3.tar.gz

  source /etc/profiel

 make

本文由乐百家服务器发布,转载请注明来源:Redhat6.6离线源码安装CR-V3.4.3