I'm trying to install a semPlot package that shows the path of factor analysis on the R client on Linux, but I got an error and I can't do it well.Has anyone successfully installed the semPlot package on R on Linux?
Rcmdr on Windows will install it on its own, but Linux will not work.
R version
Rversion 3.1.2 (2014-10-31) -- "Pumpkin Helmet"
Copyright(C) 2014 The R Foundation for Statistical Computing
Platform: x86_64-redhat-linux-gnu (64-bit)
OS version
CentOS release 6.6 (Final)
Installation takes a long time and eventually fails.
install.packages("semPlot")
Downloaded packages can be found below.
'/tmp/RtmpiyTQxe/downloaded_packages'
Update HTML Index for Packages in '.Library'
Making 'packages.html'...completed
Warning message:
1: Install.packages ("semPlot"):
Package 'rtiff' installation had a non-zero exit value
2: Install.packages ("semPlot"):
Package 'sendplot' installation had a non-zero exit value
3: Install.packages ("semPlot"):
Package 'qgraph' installation had a non-zero exit value
4:Install.packages("semPlot"):
Package 'semPlot' installation had a non-zero exit value
You cannot install rtiff before installing semPlot like this.
Therefore, I am wondering if I can install rtiff on R on Linux, but neither rtiff nor semPlot has been successfully installed anyway.
CentOS
I'm afraid it's not Arch
to deploy rtiff
tcl
(libtck.8.6.so)tk
(libtk.8.6.so)libtiff
(CRAN states that rtiff
is dependent)had to be installed.
add
I tried creating a CentOS 6.6(64bit)
virtual environment using Vagrant.I'm using the image file that I just looked for.
$mkdir centos66&cd$_
$ vagrant initnakamur/centos 6.6-x64
$ vagrant up & vagrant ssh
You have logged in to CentOS 6.6 .
$sudosu
# rpm-ihv http://ftp.riken.jp/Linux/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
# yum-y install R
Then deploy and run R
.
>install.packages("rtiff")
(omitted)
Installing* source* package 'rtiff'...
** package'rtiff' successfully unpacked and MD5 sums checkedc
checking for gcc...gcc
checking which the C compiler works...yes
checking for C compiler default output file name...a.out
Checking for suffix of executables...
checking which we are cross compiling...no
Checking for suffix of object files...o
Checking where we are using the GNUC compiler...yes
checking which gcc accepts-g...yes
checking for gcc option to accept ISO C89 ... none needed
checking for TIFFOpen in-ltiff...no
Try static libs needed on OS X
checking for TIFFOpen in-ltiff...no
Error: Could not find libtiff.
ERROR:configuration failed for package 'rtiff'
(omitted)
Since libtiff
is not available, exit R
and install libtiff
.
yum-y install libtiff-develop
After that, I ran install.packages("rtiff")
again to complete the installation successfully.
Also, semPlot
seems to depend on quite a few packages.You may experience errors each time, but it is recommended that you read the error message and install the necessary libraries one by one.(You can also look at CRAN
and list the dependent libraries in advance.)
CentOS 6.6 had the same error, but after I hit the following command to install rtiff, I was able to install the semPlot package.
sudo yum install libtiff-develop
© 2024 OneMinuteCode. All rights reserved.