Problem on installing openMX on arch

8 replies [Last post]
airmax90's picture
Offline
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?

airmax90's picture
Offline
Joined: 11/13/2012
I tried to load OpenMx in R,

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 :-)

Mike Cheung's picture
Offline
Joined: 10/08/2009
If you do not want to compile

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.t...
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

airmax90's picture
Offline
Joined: 11/13/2012
Everything went fine! Thanks

Everything went fine! Thanks Mike!
I copied the gcc4.6 to gcc4.7 and compressed the file. Then I did a R CMD INSTALL OpenMx.tar.gz -l "mylibrary" and it worked fine.

Here is the Output from the installation.:
http://pastebin.com/mDCBLFgN

mspiegel's picture
Offline
Joined: 07/31/2009
Would you mind testing the

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!

airmax90's picture
Offline
Joined: 11/13/2012
Hi! I did a checkout of the

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

mspiegel's picture
Offline
Joined: 07/31/2009
You might need to set your

You might need to set your $LD_LIBRARY_PATH? I'm not sure, I don't have any experience with icu (what is icu?).

airmax90's picture
Offline
Joined: 11/13/2012
I can't fix it :-( Could you

I can't fix it :-( Could you please tell me how to update my librarypath correctly?
Here ist the Output from configure
http://hpaste.org/78111

Thanks!

airmax90's picture
Offline
Joined: 11/13/2012
How do I do that exactly? I

How do I do that exactly? I would like to help you, but I dońt know what to do exactly....