Skip to content

Ordinal Package Errors

3 messages · Rick Bilonick, Brian Ripley

#
I'm trying to install the ordinal package
(http://popgen.unimaas.nl/~plindsey/rlibs.html).

I downloaded ordinal03.tgz and untarred it. rmutil was previously
installed (and appears to work ok.) Then I installed ordinal:

[root at localhost ~]# R CMD INSTALL /home/chippy/Download/ordinal
* Installing to library '/usr/lib/R/library'
* Installing *source* package 'ordinal' ...
** libs
** arch - 
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -c dist.c -o dist.o
dist.c: In function ?evalfn?:
dist.c:119: warning: unused variable ?nn?
dist.c: In function ?romberg?:
dist.c:146: warning: unused variable ?j?
dist.c:147: warning: ?sum[0]? may be used uninitialized in this function
dist.c:147: warning: ?Rf_df? may be used uninitialized in this function
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -c kord.c -o kord.o
kord.c: In function ?pkord?:
kord.c:428: warning: suggest explicit braces to avoid ambiguous ?else?
kord.c: In function ?kord?:
kord.c:73: warning: ?omega? may be used uninitialized in this function
kord.c:73: warning: ?b0b? may be used uninitialized in this function
kord.c:73: warning: ?a0a? may be used uninitialized in this function
gcc -m32 -std=gnu99 -I/usr/include/R  -I/usr/local/include    -fpic  -O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic
-fasynchronous-unwind-tables -c lcr.c -o lcr.o
lcr.c: In function ?lbr?:
lcr.c:247: warning: ?p? may be used uninitialized in this function
gcc -m32 -std=gnu99 -shared -L/usr/local/lib -o ordinal..so dist.o
kord.o lcr.o   -L/usr/lib/R/lib -lR
** R
** data
** preparing package for lazy loading
Loading required package: rmutil

Attaching package: 'rmutil'


        The following object(s) are masked from package:base :

         units 

** help
 >>> Building/Updating help pages for package 'ordinal'
     Formats: text html latex example 
** building package indices ...
* DONE (ordinal)


I start up R but when I try to load ordinal I get error messages:


[root at localhost ~]# R

R version 2.8.0 (2008-10-20)
Copyright (C) 2008 The R Foundation for Statistical Computing
ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Previously saved workspace restored]
Loading required package: rmutil

Attaching package: 'rmutil'


        The following object(s) are masked from package:base :

         units 

Error in library.dynam("ordinal", pkg, lib) : 
  shared library 'ordinal' not found
Error in library(ordinal) : .First.lib failed for 'ordinal'


Does anyone know how to fix this?

Rick B.
#
You need to ask the author (as the posting guide asked you to).

I'm tempted to not help further given the (almost complete) lack of 
cooperation of that author with R's recommendations, but note 
'ordinal..so' in your log and look for the obvious fix in 
src/Makefile.
On Wed, 14 Jan 2009, Rick Bilonick wrote:

            

  
    
#
On Wed, 2009-01-14 at 16:38 +0000, Prof Brian Ripley wrote:
I had no idea whether this was a problem with the particular package or
my installation of R. Sometimes you have to ask a question before it's
clear what to do.

I went to /usr/lib/R/library/ordinal/libs and moved "ordinal..so" to
"ordinal.so". This solved the problem. I didn't see anything obvious in
the Makefile (at least, not obvious to me).

There were other things that made installing the ordinal package
difficult. The first is that the file is "ordinal03.tgz". Using
won't work because the package name is ordinal, not ordinal03. I tried
renaming but that didn't work, so I untarred it and then did:
This installed the package but then ordinal..so is incorrectly named so
I corrected it as described above.

It would have been a whole lot easier if the package was in the
contributed package repository.

Rick B.