[R] Problems installing Packages

R. Michael Weylandt michael.weylandt at gmail.com
Mon Jun 4 00:14:57 CEST 2012


I'm not really an expert on BLAS-y things, but wouldn't there be more
problems upstream with R if it weren't able to find the local BLAS? I
was under the impression that R shipped it's own BLAS but could also
be directed to one at compile time -- either way, I would guess that
many other would break if the whole BLAS went missing for whatever
reason.

to Sven: Did you use a repository build or compile it yourself? And
did you touch the BLAS or R's linker flags?

Best,
Michael

On Sun, Jun 3, 2012 at 1:46 PM, Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
> The error says you are missing the BLAS library... so install it?
> ---------------------------------------------------------------------------
> Jeff Newmiller                        The     .....       .....  Go Live...
> DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
>                                      Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
> ---------------------------------------------------------------------------
> Sent from my phone. Please excuse my brevity.
>
> Sven D <sduve at hotmail.com> wrote:
>
>>Hello,
>>
>>I am going through Zhao's RDataMining PDF, and to redo all the graphics
>>on
>>my computer, I need several packages, 'coin' and 'party' to name two.
>>
>>I get the following error:
>>
>>> install.packages("coin")
>>Installing package(s) into
>>‘/home/sven/R/i686-pc-linux-gnu-library/2.15’
>>(as ‘lib’ is unspecified)
>>trying URL
>>'http://cran.ma.imperial.ac.uk/src/contrib/coin_1.0-21.tar.gz'
>>Content type 'application/x-gzip' length 903944 bytes (882 Kb)
>>opened URL
>>==================================================
>>downloaded 882 Kb
>>
>>* installing *source* package ‘coin’ ...
>>** package ‘coin’ successfully unpacked and MD5 sums checked
>>** libs
>>gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe
>>-g  -c
>>Classes.c -o Classes.o
>>gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe
>>-g  -c
>>Helpers.c -o Helpers.o
>>gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe
>>-g  -c
>>LinearStatistic.c -o LinearStatistic.o
>>gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe
>>-g  -c
>>StreitbergRoehmel.c -o StreitbergRoehmel.o
>>gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG      -fpic  -O3 -pipe
>>-g  -c
>>vandeWiel.c -o vandeWiel.o
>>gcc -std=gnu99 -shared -o coin.so Classes.o Helpers.o LinearStatistic.o
>>StreitbergRoehmel.o vandeWiel.o -lblas -lgfortran -lm -L/usr/lib/R/lib
>>-lR
>>/usr/bin/ld: cannot find -lblas
>>collect2: ld returned 1 exit status
>>make: *** [coin.so] Error 1
>>ERROR: compilation failed for package ‘coin’
>>* removing ‘/home/sven/R/i686-pc-linux-gnu-library/2.15/coin’
>>Warning in install.packages :
>>  installation of package ‘coin’ had non-zero exit status
>>
>>The downloaded source packages are in
>>       ‘/tmp/RtmpYPqZgS/downloaded_packages’
>>
>>My system session info is as follows:
>>
>>R version 2.15.0 (2012-03-30)
>>Platform: i686-pc-linux-gnu (32-bit)
>>
>>locale:
>> [1] LC_CTYPE=en_GB.UTF-8       LC_NUMERIC=C
>> [3] LC_TIME=en_GB.UTF-8        LC_COLLATE=en_GB.UTF-8
>> [5] LC_MONETARY=en_GB.UTF-8    LC_MESSAGES=en_GB.UTF-8
>> [7] LC_PAPER=C                 LC_NAME=C
>> [9] LC_ADDRESS=C               LC_TELEPHONE=C
>>[11] LC_MEASUREMENT=en_GB.UTF-8 LC_IDENTIFICATION=C
>>
>>attached base packages:
>>[1] stats     graphics  grDevices utils     datasets  methods
>>[7] base
>>
>>loaded via a namespace (and not attached):
>>[1] tools_2.15.0
>>
>>
>>I do not have a problem loading it on my windows PC. Anyone having
>>similar
>>experience, and perhaps know the solution? Furthermore, package
>>'RHTMLForms'
>>from Omegahat I could only install on the ubuntu computer and not on
>>the
>>windows computer. Anyone know the reason why? Perhaps this is not even
>>an R
>>question, but any hint would be great.
>>
>>Thanks
>>
>>
>>
>>Sven
>>
>>
>>--
>>View this message in context:
>>http://r.789695.n4.nabble.com/Problems-installing-Packages-tp4632217.html
>>Sent from the R help mailing list archive at Nabble.com.
>>
>>______________________________________________
>>R-help at r-project.org mailing list
>>https://stat.ethz.ch/mailman/listinfo/r-help
>>PLEASE do read the posting guide
>>http://www.R-project.org/posting-guide.html
>>and provide commented, minimal, self-contained, reproducible code.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list