Unable to run application

CodeLite installation/troubleshooting forum
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

Unable to run application

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Unable to run application

Post by eranif »

Can u provide an example?

Eran
Make sure you have read the HOW TO POST thread
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

Re: Unable to run application

Post 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
DavidGH
CodeLite Plugin
Posts: 819
Joined: Wed Sep 03, 2008 7:26 pm
Contact:

Re: Unable to run application

Post 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
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Unable to run application

Post by eranif »

DavidGH wrote:Multiple dirs should be separated by colons, not semi-colons.
Nice catch :D

Eran
Make sure you have read the HOW TO POST thread
marfi
CodeLite Expert
Posts: 159
Joined: Mon Nov 03, 2008 9:17 pm
Contact:

Re: Unable to run application

Post 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
Post Reply