Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problems in centos6.5 installation R language

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains the "centos6.5 installation R language problems how to solve", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in-depth, together to study and learn "centos6.5 installation R language problems how to solve" it!

Environment: virtual machine centos6.5 kernel is 2.6.32-696.1.1.el6.x86_64 (this is the updated kernel version, which is lower than this version before the update), Rmuri 3.3.2

Most of the strategies on the Internet are to download the R package, then decompress it, configure and install it. The steps are as follows:

(1) download the installation package

Wget https://cran.r-project.org/src/base/R-3/R-3.2.2.tar.gz

(2) resolve dependency packages

# yum install gcc-gfortran

# yum install gcc gcc-c++

# yum install readline-devel

# yum install libXt-devel

(3) decompression and installation

# tar xvf R-3.3.2.tar.gz

# cd Rmur3.3.2

#. / configure

# make

# make install

In make, the error make: * No targets specified and no makefile found. Stop.

This is embarrassing, know that the problem is coming, find du Niang, find a blog post, say two reasons, one is that the kernel is too old, and the other is that the dependent package is not fully installed, so update the kernel first

Yum update

When the update is halfway down, then the problem comes again. Restart Times wrong vfs:unable to mount root fs on unknown-block (0Pol 0)

Looking for du Niang again, I found that it was not completely updated during the upgrade, and there was a problem with the grub boot file. I went to / boot/grub/menu.lst to check and found that there was a lack of initrd in the latest version of the startup command, but I was born stupid and couldn't figure out how this thing was generated. I had no choice but to unload the kernel and update it again.

Yum remove kernel 2.6.32-696.1.1.el6.x86_64

After uninstalling, re-yum update, perfect upgrade! Delete the obsolete kernel and upgrade is solved.

Then extract the installation, or report an error, that is, the dependency package is not completely installed, and you are actually checking the dependency package during the execution of. / configure. You didn't pay much attention to the first installation, and later found such a section.

Checking for zlib.h... Yes

Checking if zlib version > = 1.2.5. No

Checking whether zlib support suffices... Configure: error: zlib library and hea ders are required

Then check the zlib of the kernel

Rpm-qa | gerp zlib

Found that the kernel comes with zlib version 1.2.3, it can be seen that the version is too low, the problem is determined, then du Niang, found a blog https://www.hitoy.org/use-the-compiled-zlib-library-to-replace-the-system-integration-one.html

Said to upgrade zlib, I think this first uninstall, and then upgrade, but the system does not allow uninstall, and later found that zlib is a very important part of the kernel, rely on a lot of, so can not be uninstalled; then directly upgrade it, yum install zlib, but told me that the system has been installed, but their own download on the Internet, according to the above blog to do, the final installation is still can not find zlib!

This problem has been bothering me for two days. I can't change the zlib version. I downloaded a new zlib-1.2.5 version on the Internet.

. / configure

Make

Make install

The above problem seems to be that the current kernel version does not support the latest version of zlib, so use a lower version!

Re-install R and report that the bzip2 version is too low, which is required to be greater than or equal to bzip2-1.0.6. The kernel comes with a version of bzip2-1.0.5. Download, install, and then report an error.

/ usr/bin/ld: blocksort.o: relocation R_X86_64_32 against `.rodata.str1.1 'can not be used when making a shared object; recompile with-fPIC

Blocksort.o: could not read symbols: Bad value

Collect2: ld returned 1 exit status

Make: * * [all] Error 1

Helplessly, then find du Niang. You need to change the CC=gcc in Makefile-libbz2_so to CC=gcc-fPIC, and there is no configure in the decompressed file. You need to execute make-f Makefile-libbz2_so first, and then in make install.

Install R again, the problem remains the same, this is embarrassing, all kinds of Baidu, have not been solved, the problem can only be located to the system kernel itself, just like the first installation of the zlib-1.2.11 version of the system does not recognize the same, it seems that the system is not compatible with bzip2-1.0.6 version, so this do-it-yourself installation method is not feasible, abandon!

Finally, Baidu proposed a method that requires only three steps. Generally speaking, it first updates the system kernel and uses the third-party yum source epel, which contains the latest various software packages, and then installs R using yum just like installing software, which is successful. The steps are as follows:

Su-c "rpm-Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm"

Yum update

Yum install R

The attached pictures are as follows:

Download yum Feed

Update yum Feed

Install R process

Thank you for your reading, the above is the "centos6.5 installation R language problems how to solve" the content, after the study of this article, I believe you have a deeper understanding of the centos6.5 installation R language problems how to solve this problem, the specific use of the situation also needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report