Help with running Linux software LD_LIBRARY_PATH
Dear folks -- I'm trying to install a software package called LINGO for my operations research class. There's a Linux version (no BSD, though). http://www.lindo.com/downloads/downloadm.html I'm hoping I can get this to work with the Linux emulation layer (other stuff work already, like Maple 8). I am getting errors related to a shell script a LD_LIBRARY_PATH There are libraries that need to be loaded in /opt/lingo9 ls LINGO.CNF libcxa.so liblindo.so libmosek.so.3.2 lingovars.sh libcxa.so.3 liblindo.so.3.0 libunwind.so.5 libconsub3.so libcxa.so.5 libmosek.so lingo9 I unpacked it under /opt. There's a bash shell script you're supposed to run: ## #! /bin/sh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/lingo9/bin/linux32 export LD_LIBRARY_PATH LINGO_LICENSE_FILE=$HOME/opt/lingo9/license/lndlng90.lic export LINGO_LICENSE_FILE ### My first question is if the shell script translation to tcsh is correct: ### #!/bin/tcsh setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/lingo9/bin/linux32 setenv LINGO_LICENSE_FILE /opt/ling9/license/lndlng90.lic ### When I try to execute it, I get the error below (BTW, set to 755). ls -l bsdlingolic.sh -rwxr-xr-x 1 root 2527 143 19 Abr 13:00 bsdlingolic.sh ./bsdlingolic.sh LD_LIBRARY_PATH: Undefined variable. What suggestions do you have regarding this issue? Thanks in advance. Henry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
### #!/bin/tcsh setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/lingo9/bin/linux32 setenv LINGO_LICENSE_FILE /opt/ling9/license/lndlng90.lic ### When I try to execute it, I get the error below (BTW, set to 755). LD_LIBRARY_PATH: Undefined variable. It means exactly what it says. By default LD_LIBRARY_PATH is not set in your env. If you try to use a not set yet 'undefined' variable on the right hand side of a setenv it gives this. setenv LD_LIBRARY_PATH /opt/lingo9/bin/linux32 Or you could get fancy with [ -z $LD_LIBRARY_PATH ] -- Philip M. Gollucci ([EMAIL PROTECTED]) 323.219.4708 Consultant / http://p6m7g8.net/Resume Senior Software Engineer - TicketMaster - http://ticketmaster.com 1024D/EC88A0BF 0DE5 C55C 6BF3 B235 2DAB B89E 1324 9B4F EC88 A0BF Work like you don't need the money, love like you'll never get hurt, and dance like nobody's watching. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
On Thu, 19 Apr 2007 13:15:28 -0300 Henry Lenzi wrote: I'm trying to install a software package called LINGO for my operations research class. There's a Linux version (no BSD, though). http://www.lindo.com/downloads/downloadm.html I'm hoping I can get this to work with the Linux emulation layer (other stuff work already, like Maple 8). I am getting errors related to a shell script a LD_LIBRARY_PATH There are libraries that need to be loaded in /opt/lingo9 ls LINGO.CNF libcxa.so liblindo.so libmosek.so.3.2 lingovars.sh libcxa.so.3 liblindo.so.3.0 libunwind.so.5 libconsub3.so libcxa.so.5 libmosek.so lingo9 I unpacked it under /opt. There's a bash shell script you're supposed to run: ## #! /bin/sh LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/lingo9/bin/linux32 export LD_LIBRARY_PATH LINGO_LICENSE_FILE=$HOME/opt/lingo9/license/lndlng90.lic export LINGO_LICENSE_FILE ### My first question is if the shell script translation to tcsh is correct: Why should you convert the script to tcsh? IMHO the best way is to convert it to sh. ### #!/bin/tcsh setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:/opt/lingo9/bin/linux32 ^^^ [1] recursive declaration? setenv LINGO_LICENSE_FILE /opt/ling9/license/lndlng90.lic ### When I try to execute it, I get the error below (BTW, set to 755). ls -l bsdlingolic.sh -rwxr-xr-x 1 root 2527 143 19 Abr 13:00 bsdlingolic.sh ./bsdlingolic.sh LD_LIBRARY_PATH: Undefined variable. Yep, it's not defined at the time [1] occures. Actually, defining LD_LIBRARY_PATH almost always is a Bad Thing. What suggestions do you have regarding this issue? 1. Create a port (local?) for the software. Don't forget to brand executables (only!). 2. Install it to PREFIX=/usr/local (i.e. libraries to /usr/local/lib etc), linuxulator will make the right thing to find needed libraries. 3. Delete the definition of LD_LIBRARY_PATH. 4. Enjoy you work. ;-) WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
Thank you it worked, except it borked with out-of-memory. I'll quit using LINGO. Henry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
Thank you Boris. I just discovered that there's an AMPL version for FreeBSD (who says FreeBSD doesn't get support ?) that works with lp_solve, so I'll be using that (lp_solve is in the ports tree). http://www.ampl.com/DOWNLOADS/details.html#Unix I mention this for other people that might want to search operations research software that works on FreeBSD. Thanks. Henry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
On Thu, 19 Apr 2007 16:23:52 -0300 Henry Lenzi wrote: Thank you Boris. You are welcome. I just discovered that there's an AMPL version for FreeBSD (who says FreeBSD doesn't get support ?) that works with lp_solve, so I'll be using that (lp_solve is in the ports tree). I'm far from understanding the topic of those programms. Can you say if the port of LINGO may be helpful for FreeBSD users? WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
On 4/19/07, Boris Samorodov [EMAIL PROTECTED] wrote: I'm far from understanding the topic of those programms. Can you say if the port of LINGO may be helpful for FreeBSD users? These softwares are for optimization of costs, resources etc. in products, or shipment, routes, etc. I think, yeah, it would be nice to have it on FreeBSD. If they support Linux, it means there are people interested and they're pretty much th same sort of crowd that would use FreeBSD. In fact, one of the reasons people might choose Linux instead of FreeBSD is because they think there is no - or see - no software for FreeBSD. BTW, I have contacted the tech support ([EMAIL PROTECTED]) and told them it would probably be very easy for them so have a FreeBSD version. Spasiba, Boris! Henry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Help with running Linux software LD_LIBRARY_PATH
On Thu, 19 Apr 2007 17:24:21 -0300 Henry Lenzi wrote: On 4/19/07, Boris Samorodov [EMAIL PROTECTED] wrote: I'm far from understanding the topic of those programms. Can you say if the port of LINGO may be helpful for FreeBSD users? These softwares are for optimization of costs, resources etc. in products, or shipment, routes, etc. Got it. I think, yeah, it would be nice to have it on FreeBSD. If they support Linux, it means there are people interested and they're pretty much th same sort of crowd that would use FreeBSD. In fact, one of the reasons people might choose Linux instead of FreeBSD is because they think there is no - or see - no software for FreeBSD. I asked that question because I had a glance at the program and imo it's not too hard to port the _linux_ version. BTW, I have contacted the tech support ([EMAIL PROTECTED]) and told them it would probably be very easy for them so have a FreeBSD version. That would be great. Spasiba, Boris! And thank you! ;-) WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]