Problem on installing openMX on arch

Posted on
No user picture. airmax90 Joined: 11/13/2012
i tried to install openmx with

source('http://openmx.psyc.virginia.edu/getOpenMx.R')

but i get this errormessage on my r-terminal:

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
1. single-threaded
2. multi-threaded [default]
Installing package(s) into ‘/home/martin/.rkward/library’
(as ‘lib’ is unspecified)
versuche URL 'http://openmx.psyc.virginia.edu/packages/src/contrib/OpenMx_1.3.1-2179.tar.gz'
Content type 'application/x-gzip' length 7267970 bytes (6.9 Mb)
URL geöffnet
==================================================
downloaded 6.9 Mb

checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for gcc option to support OpenMP... -fopenmp
checking whether gcc is installed... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking if gcc accepts -dumpversion option... yes
checking gcc version... 4.7.2
checking for gawk... gawk
checking for inst/npsol/linux/x86_64/gcc4.7/libnpsol.a... no

The downloaded source packages are in
‘/tmp/RtmpsI4Ocv/downloaded_packages’
Warnmeldung:
In install.packages(pkgs = c("OpenMx"), repos = repos) :
installation of package ‘OpenMx’ had non-zero exit status
>

what's wrong?

Replied on Tue, 11/13/2012 - 18:32
Picture of user. mspiegel Joined: 07/31/2009

Would you mind testing the npsol library with gcc 4.7 on a 64-bit architecture? You'll need to build OpenMx from source. The directions on testing npsol are from this thread (http://openmx.psyc.virginia.edu/thread/1674), just replace all the references to "x86" with "x86_64". Thanks!
Replied on Wed, 11/21/2012 - 12:00
No user picture. airmax90 Joined: 11/13/2012

In reply to by mspiegel

Hi!

I did a checkout of the newest OpenMx version and tried to build it from source. "make test" gives this output:

[martin@archstation trunk]$ make test
R --vanilla --slave --cpus=1 < inst/tools/testModels.R
/usr/local/lib/R/bin/exec/R: error while loading shared libraries: libicuuc.so.49: cannot open shared object file: No such file or directory
make: *** [test] Fehler 127

...but I have icu 5.10-2 already installed from the arch repositories.

Martin

Replied on Tue, 11/13/2012 - 21:22
Picture of user. Mike Cheung Joined: 10/08/2009

If you do not want to compile it from source, you may try:

1. Download the compressed file, say http://openmx.psyc.virginia.edu/packages/src/contrib/OpenMx_1.3.1-2179.tar.gz
2. Uncompress it into a directory, say OpenMx.
3. Make a copy of the folder gcc4.7 from gcc4.6 from /OpenMx/inst/npsol/linux/x86_64
4. Compress OpenMx to OpenMx.tar.gz
5. R CMD INSTALL OpenMx.tar.gz

Replied on Wed, 11/14/2012 - 03:47
No user picture. airmax90 Joined: 11/13/2012

I tried to load OpenMx in R, as OpenMx appears in the installed packages, but i get this errormessage:

package ‘OpenMx’ was built under R version 2.16.0
Error : unable to load R code in package ‘OpenMx’

but my version is R version 2.15.1 (2012-06-22)

..I think I have to wait until arch updates their R packages :-)