Hello Xypron,

thank you for your help! The installation  was successful, but when I load
an empty problem like that:

glp_prob lp = GLPK.glp_create_prob();

I get a link error:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no glpk_4_44_java
in java.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734)
    at java.lang.Runtime.loadLibrary0(Runtime.java:823)
    at java.lang.System.loadLibrary(System.java:1028)
    at org.gnu.glpk.GLPK.<clinit>(GLPK.java:19)
    at SimpleExemple.main(SimpleExemple.java:67)

Could you please help me? Thank you in advance.


xypron wrote:
> 
> Hello Anastasiya,
> 
> the error occurs in glpk-java-1.0.14/swig/Makefile in the following line:
> 
> libtool --mode=install install -c libglpk_java.la 
> $(DESTDIR)${prefix}/lib/jni/libglpk_java.la
> 
> This command should install libglpk_java.so in directory
> /usr/local/lib/jni.
> 
> Please, delete any trailing space in the following line:
> 
> prefix = /usr/local
> 
> Best regards
> 
> Xypron
> 
> 
> IsiAna wrote:
>> Hello everybody,
>>
>> I'm trying to install glpk-java-1.0.14 on Ubuntu 10.04. I got the tar.gz
>> package from http://sourceforge.net/projects/glpk-java/. I manage to
>> install
>> the glpk-4.44, swig, libtool and java-gcj-compat-dev.
>> I have following error libtool: install: `/lib/jni/libglpk_java.la' is
>> not a
>> directory, when I run the make install command for glpk-java.
>> Here is my output
>>
>> cd swig; make install
>> make[1]: Entering directory
>> `/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
>> mkdir -p -m 755 /usr/local /lib/jni;true
>> libtool --mode=install install -c libglpk_java.la /usr/local
>> /lib/jni/libglpk_java.la
>> libtool: install: `/lib/jni/libglpk_java.la' is not a directory
>> libtool: install: Try `libtool --help --mode=install' for more
>> information.
>> make[1]: *** [install] Error 1
>> make[1]: Leaving directory
>> `/home/isi/SystemFiles/GLPK/glpk-java-1.0.14/swig'
>> make: *** [install] Error 2
>>
>> Please is there anyone that can help me? Thanks a lot.
>> Anastasiya
>>    
> 
> 
> _______________________________________________
> Help-glpk mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-glpk
> 
> 

-- 
View this message in context: 
http://old.nabble.com/glpk-java-libtool-install-error-tp29520668p29531905.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.


_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to