[R] Problem installing tseries package

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jul 26 18:09:00 CEST 2007


On Thu, 26 Jul 2007, Michael Cassin wrote:

> Hi,
>
> I'm running R 2.4.1 on Fedora Core 6 and am unable to install the tseries
> package.  I've resolved a few problems getting to this point, by running a
> yum update, installing the gcc-gfortran dependency, but now I'm stuck.
> Could someone please point me in the right direction?

Please read the posting guide and provide the information you were asked 
for: only then we may be able to help you.

You seem to have a system which installed R in /usr/lib/R but has x86_64 
components on it.  So what architecture is it that you are trying to run?

My guess is that you installed a i386 RPM on a x86_64 OS.  That will 
install and R will run *but* you will not be able to use it to install 
packages.  If you installed the i386 RPM after the x86_64 one, it will 
have overwritten some crucial files including /usr/bin/R.

It is possible to have i386 and x86_64 R coexisting on x86_64 Linux, but 
not by installing RPMs for different architectures.


>
> ========R install.packages output =======
> ==================================
>
>> install.packages("tseries")
>
> trying URL '
> http://www.sourcekeg.co.uk/cran/src/contrib/tseries_0.10-11.tar.gz'
> Content type 'application/x-tar' length 182043 bytes
> opened URL
> ==================================================
> downloaded 177Kb
>
> * Installing *source* package 'tseries' ...
> ** libs
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c arma.c -o arma.o
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c bdstest.c -o bdstest.o
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c boot.c -o boot.o
> gfortran   -fpic  -O2 -g -c dsumsl.f -o dsumsl.o
> In file dsumsl.f:450
>
>      IF (IV(1) - 2) 30, 40, 50
>                                                                       1
> Warning: Obsolete: arithmetic IF statement at (1)
> In file dsumsl.f:3702
>
>   10 ASSIGN 30 TO NEXT
>                                                                       1
> Warning: Obsolete: ASSIGN statement at (1)
> In file dsumsl.f:3707
>
>   20    GO TO NEXT,(30, 50, 70, 110)
>                  1
> Warning: Obsolete: Assigned GOTO statement at (1)
> In file dsumsl.f:3709
>
>      ASSIGN 50 TO NEXT
>                                                                       1
> Warning: Obsolete: ASSIGN statement at (1)
> In file dsumsl.f:3718
>
>      ASSIGN 70 TO NEXT
>                                                                       1
> Warning: Obsolete: ASSIGN statement at (1)
> In file dsumsl.f:3724
>
>      ASSIGN 110 TO NEXT
>                                                                       1
> Warning: Obsolete: ASSIGN statement at (1)
> In file dsumsl.f:4552
>
>      IF (IV(1) - 2) 999, 30, 70
>                                                                       1
> Warning: Obsolete: arithmetic IF statement at (1)
> In file dsumsl.f:4714
>
>      IF (IRC) 140, 100, 210
>                                                                       1
> Warning: Obsolete: arithmetic IF statement at (1)
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c garch.c -o garch.o
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c ppsum.c -o ppsum.o
> gcc -I/usr/lib/R/include -I/usr/lib/R/include  -I/usr/local/include
> -fpic  -O3 -g -std=gnu99 -c tsutils.c -o tsutils.o
> gcc -shared -Bdirect,--hash-stype=both,-Wl,-O1 -o tseries.so arma.o
> bdstest.o boot.o dsumsl.o garch.o ppsum.o tsutils.o -L/usr/lib/R/lib -lRblas
> -lgfortran -lm -lgcc_s -lgfortran -lm -lgcc_s -L/usr/lib/R/lib -lR
> /usr/bin/ld: skipping incompatible /usr/lib/R/lib/libRblas.so when searching
> for -lRblas
> /usr/bin/ld: skipping incompatible /usr/lib/R/lib/libRblas.so when searching
> for -lRblas
> /usr/bin/ld: cannot find -lRblas
> collect2: ld returned 1 exit status
> make: *** [tseries.so] Error 1
> ERROR: compilation failed for package 'tseries'
> ** Removing '/usr/lib/R/library/tseries'
>
>
> =============================================
> =============================================
>
>
> I presume the priority is addressing the error: "/usr/bin/ld: cannot find
> -lRblas"
>
> I have the libRblas.so file with R 2.4. Do I need to upgrade to R 2.5 - In
> which case I'll be asking how to fix the problems I'm having doing that  ;)
>
> [~]# yum provides libRblas.so
> <snip>
>
> R.x86_64                                 2.5.1-2.fc6            extras
> Matched from:
> /usr/lib64/R/lib/libRblas.so
> libRblas.so()(64bit)
>
> R.x86_64                                 2.5.1-2.fc6            extras
> Matched from:
> /usr/lib64/R/lib/libRblas.so
> libRblas.so()(64bit)
>
> R.i386                                   2:2.4.1-1.fc6          installed
> Matched from:
> /usr/lib/R/lib/libRblas.so
> libRblas.so
>
> R.x86_64                                 2.4.1-4.fc6            installed
> Matched from:
> /usr/lib64/R/lib/libRblas.so
> libRblas.so()(64bit)
>
>
> Regards,
> Mike
>
> 	[[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list