LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Frustrating compilation issue (https://www.linuxquestions.org/questions/linux-software-2/frustrating-compilation-issue-615116/)

PatrickNew 01-21-2008 01:54 AM

Frustrating compilation issue
 
Okay, so I'm doing some research for which I need the most up-to-date octave I can get. So, instead of taking the 2.9.x Ubuntu or Debian package, I grabbed the 3.0.0 tarball from the octave site. Then all the trouble began. :-)

Okay, so I am using atlas for the LAPACK and BLAS, and I grabbed a tarball of SuiteSparse for everything else. I managed to compile SuiteSparse with metis and atlas, and that tree now resides in /opt/SuiteSparse-3.1.0/ . The trouble is, I can find no way to make the octave configure script aware of their location.

I can't do --with-UMFPACK, etc because apparently that is just expecting =yes or =no. I tried adding '-I/opt/SuiteSparse/UMFPACK/Include/ /opt/SuiteSparse-3.1.0/Lib/libumfpack.a' to CFLAGS, but all to no avail.
I think the problem is that -lumfpack isn't being created since SuiteSparse has no 'make install' or any other way of installing outside of its own source tree. How can I solve or circumvent this? Has anyone managed to build octave 3.0.0 yet?

weibullguy 01-22-2008 02:59 PM

Just because there isn't an install target in the Makefile doesn't mean there isn't a way to install the libraries outside the source tree. Did you try the cp or install command?
Code:

cp UMFPACK/Lib/libumfpack.a /usr/local/lib
You should include the path to the directory containing the libumfpack.a library in the CFLAGS
Code:

CFLAGS="-L/opt/SuiteSparse-3.1.0/Lib -lumfpack"
To answer your last question...no. But I haven't tried to build the 3.0.0 Octave yet.

Drakeo 01-22-2008 03:44 PM

to make it aware is to look where it tries to look in your pkgconfig file. and if it is looking in the /usr/loacal/lib/pkgconfig folder and it is not there then that could be your trouble. or if it is looking for your /usr/lib/pkgconfig folder instead of looking in the other.check you config log and check your configure program to see where it is looking.

anket 02-10-2008 08:16 AM

Hello.

I am having trouble compiling SuiteSparse. Neither ATLAS nor the native BLAS seemed to work for me.

Could you please post your directions for successfully compiling SuiteSparse?

Thanks!

PatrickNew 02-10-2008 05:32 PM

Sorry, but I don't think I could be much help there. I just directly followed the directions from SuiteSparse. If those didn't work for you, then I don't know what will. I wound up just finding enough things in the Debian repos to get Octave to build, so I didn't even end up using my newly-build suitesparse.

anket 02-13-2008 02:51 PM

No worries. It appears that a successful SuiteSparse build requires the existence of shared libraries from the ATLAS package.

The ATLAS Installation Guide (written by R. Clint Whaley) provides the needed directions to make this happen.


All times are GMT -5. The time now is 02:29 AM.