Page 1 of 1

Unable to run application

Posted: Thu Mar 12, 2009 12:27 pm
by marfi
Hi, it seems there is a bug in processing of environment variables (at least on Linux). If there are more than one directory set in LD_LIBRARY_PATH (separated by semicolons) then an application cannot be run (only message about pressing a key is displayed in the terminal window). If there is only one path in the mentioned env. variable, everything work fine.

I use Ubuntu 8.10, CL rev 2792.

Reagards
Michal

Re: Unable to run application

Posted: Thu Mar 12, 2009 3:31 pm
by eranif
Can u provide an example?

Eran

Re: Unable to run application

Posted: Thu Mar 12, 2009 4:30 pm
by marfi
Hi, for example, with this value of LD_LIBRARY_PATH my application starts without any problem (LD_LIBRARY_PATH=/home/michal/Src/Projects/wxSF/lib/gcc_dll):
Content of output panel:

Code: Select all

Current working directory: /home/michal/Src/Projects/wxXS/samples/Sample3/bin/gcc
Running program: xterm -title './CustomDataSample ' -e '/bin/sh -f /usr/bin/le_exec.sh LD_LIBRARY_PATH=/home/michal/Src/Projects/wxSF/lib/gcc_dll ./CustomDataSample '
Program exited with return code: 0
But with following settings only a black terminal window with text "Press ENTER to continue..." appears and nothing more happens ( LD_LIBRARY_PATH=/home/michal/Src/Projects/wxSF/lib/gcc_dll;/home/michal/Src/Projects/wxXS/lib/gcc_dll):

Content of output panel:

Code: Select all

Current working directory: /home/michal/Src/Projects/wxXS/samples/Sample3/bin/gcc
Running program: xterm -title './CustomDataSample ' -e '/bin/sh -f /usr/bin/le_exec.sh LD_LIBRARY_PATH=/home/michal/Src/Projects/wxSF/lib/gcc_dll;/home/michal/Src/Projects/wxXS/lib/gcc_dll ./CustomDataSample '
Program exited with return code: 0
In previous revisions (unfortunatelly, I don't know in which revision the problem appeared for the first time) of CL everything worked fine.

Best regards
Michal

Re: Unable to run application

Posted: Sat Mar 14, 2009 10:22 pm
by DavidGH
Hi,
If there are more than one directory set in LD_LIBRARY_PATH (separated by semicolons)...
Multiple dirs should be separated by colons, not semi-colons.

Regards,

David

Re: Unable to run application

Posted: Sat Mar 14, 2009 10:41 pm
by eranif
DavidGH wrote:Multiple dirs should be separated by colons, not semi-colons.
Nice catch :D

Eran

Re: Unable to run application

Posted: Mon Mar 16, 2009 11:41 am
by marfi
eranif wrote:
DavidGH wrote:Multiple dirs should be separated by colons, not semi-colons.
Nice catch :D

Eran
Oooops.... :oops: What a shame! With colons everything work fine. Thanks a lot!

Regards
Michal