我刚刚在我的Linux Ubuntu 12.04.5 LTS上安装了R 3.1.1。 然后我想安装topicmodels包,所以我输入 install.packages(“topicmodels”),但安装不起作用。
我的默认软件包中似乎没有安装“stats”软件包。 这是日志:
> install.packages("topicmodels");
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
also installing the dependencies ‘modeltools’, ‘slam’, ‘tm’
provo con l'URL 'http://cran.utstat.utoronto.ca/src/contrib/modeltools_0.2-21.tar.gz'
Content type 'application/x-gzip' length 14794 bytes (14 Kb)
URL aperto
==================================================
downloaded 14 Kb
provo con l'URL 'http://cran.utstat.utoronto.ca/src/contrib/slam_0.1-32.tar.gz'
Content type 'application/x-gzip' length 46672 bytes (45 Kb)
URL aperto
==================================================
downloaded 45 Kb
provo con l'URL 'http://cran.utstat.utoronto.ca/src/contrib/tm_0.6.tar.gz'
Content type 'application/x-gzip' length 505212 bytes (493 Kb)
URL aperto
==================================================
downloaded 493 Kb
provo con l'URL 'http://cran.utstat.utoronto.ca/src/contrib/topicmodels_0.2-1.tar.gz'
Content type 'application/x-gzip' length 847889 bytes (828 Kb)
URL aperto
==================================================
downloaded 828 Kb
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
Durante l'avvio - Warning message:
package ‘stats’ in options("defaultPackages") was not found
* installing *source* package ‘modeltools’ ...
** package ‘modeltools’ successfully unpacked and MD5 sums checked
** R
** inst
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
Error : package ‘stats’ could not be loaded
ERROR: lazy loading failed for package ‘modeltools’
* removing ‘/usr/local/lib/R/site-library/modeltools’
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
Durante l'avvio - Warning message:
package ‘stats’ in options("defaultPackages") was not found
* installing *source* package ‘slam’ ...
** package ‘slam’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c apply.c -o apply.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c grouped.c -o grouped.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c sparse.c -o sparse.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c util.c -o util.o
gcc -std=gnu99 -shared -Wl,-Bsymbolic-functions -Wl,-z,relro -o slam.so apply.o grouped.o sparse.o util.o -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/slam/libs
** R
** preparing package for lazy loading
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
ERROR: lazy loading failed for package ‘slam’
* removing ‘/usr/local/lib/R/site-library/slam’
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
Durante l'avvio - Warning message:
package ‘stats’ in options("defaultPackages") was not found
ERROR: dependency ‘slam’ is not available for package ‘tm’
* removing ‘/usr/local/lib/R/site-library/tm’
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib/R/library/stats/libs/stats.so':
/usr/lib/liblapack.so.3gf: undefined symbol: ATL_chemv
Durante l'avvio - Warning message:
package ‘stats’ in options("defaultPackages") was not found
ERROR: dependencies ‘modeltools’, ‘slam’, ‘tm’ are not available for package ‘topicmodels’
* removing ‘/usr/local/lib/R/site-library/topicmodels’
The downloaded source packages are in
‘/tmp/RtmpIppG4O/downloaded_packages’
Warning messages:
1: In install.packages("topicmodels") :
installation of package ‘modeltools’ had non-zero exit status
2: In install.packages("topicmodels") :
installation of package ‘slam’ had non-zero exit status
3: In install.packages("topicmodels") :
installation of package ‘tm’ had non-zero exit status
4: In install.packages("topicmodels") :
installation of package ‘topicmodels’ had non-zero exit status
这是 dpkg -l |的输出grep“blas \ | atlas”命令:
ii libatlas3gf-base 3.8.4-3build1 Automatically Tuned Linear Algebra Software, generic shared
ii libblas-dev 1.2.20110419-2ubuntu1 Basic Linear Algebra Subroutines 3, static library
ii libblas3gf 1.2.20110419-2ubuntu1 Basic Linear Algebra Reference implementations, shared library
ii libopenblas-base 0.1alpha2.2-3 Optimized BLAS (linear algebra) library based on GotoBLAS2
ii libopenblas-dev 0.1alpha2.2-3 Optimized BLAS (linear algebra) library based on GotoBLAS2
您对如何解决这个问题有什么建议吗?