problem in installing openmx with R-2.11.0 on ArchLinux

Posted on
No user picture. aalex Joined: 06/14/2010
Hi, I have a problem in installing OpenMX with R-2.11.0 and gcc 4.5.0 20100610 (prerelease) on ArchLinux with i686 architecture. The compilation interrupts because of the npsol library missing:

> source('http://openmx.psyc.virginia.edu/getOpenMx.R')
Warning in install.packages(pkgs = c("OpenMx"), repos = repos) :
argument 'lib' is missing: using '/home/ale/R/i686-pc-linux-gnu-library/2.11'
provo con l'URL 'http://openmx.psyc.virginia.edu/packages/src/contrib/OpenMx_0.3.3-1264.tar.gz'
Content type 'application/x-gzip' length 4428843 bytes (4.2 Mb)
URL aperto
==================================================
downloaded 4.2 Mb

* installing *source* package ‘OpenMx’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 whether gcc is installed... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking if gcc accepts -dumpversion option... yes
checking gcc version... 4.5.0
checking for gawk... gawk
checking for inst/npsol/linux/x86/gcc4.5/libnpsol.a... no
configure: error: npsol library not found
ERROR: configuration failed for package ‘OpenMx’
* removing ‘/home/ale/R/i686-pc-linux-gnu-library/2.11/OpenMx’

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

The same problem came also with the installation from svn.

How can I do?

Many thanks,
Ale

Replied on Mon, 06/14/2010 - 10:20
Picture of user. mspiegel Joined: 07/31/2009

Ah. We have the rights to distribute the npsol binary, but not the source code. The OpenMx library includes versions of npsol compiled for each major revision of gcc. We haven't compiled npsol yet using the gcc 4.5 series. Any chance you could use a gcc 4.4.x compiler on that machine?
Replied on Thu, 10/28/2010 - 21:14
Picture of user. mspiegel Joined: 07/31/2009

In reply to by szylkrecik

Try the following. Download the OpenMx source code using the directions from http://openmx.psyc.virginia.edu/wiki/howto-build-openmx-source-repository. Then create a directory in trunk\inst\npsol\linux\x86\gcc4.5 and then copy the contents from trunk\inst\npsol\linux\x86\gcc4.4 into this directory. Run "make install test" in the trunk directory and look for 0 errors reported.