IDE does not interpret ~ in the environment variable $PATH
Original Reporter info from Mantis: Stephano
-
Reporter name:
Original Reporter info from Mantis: Stephano
- Reporter name:
Description:
I have created a lazarus launcher script which sets env variables and runs lazarus. The export statements use ~ to refer to the home directory. Lazarus chokes:
"The project uses target OS=linux and CPU=i386.
The system.ppu for this target was not found in the FPC binary directories.
Make sure fpc is installed correctly for this target and the fpc.cfg contains the right directories."
The following is shown in the terminal:
TFPCTargetConfigCache.NeedsUpdate real compiler in PATH changed from "/home/me/Programs/fpc/2.5.1/lib/fpc/2.5.1/ppc386" to ""
TFPCTargetConfigCache.Update /home/me/Programs/fpc/2.5.1/bin/fpc TargetOS=linux TargetCPU=i386 CompilerOptions= ExtraOptions=-Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg PATH=~/Programs/fpc/2.5.1/bin:~/Programs/fpc/2.5.1/lib/fpc/2.5.1:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
RunTool /home/me/Programs/fpc/2.5.1/bin/fpc -iTOTP -Pi386 -Tlinux -Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg
RunTool /home/me/Programs/fpc/2.5.1/bin/fpc -va -Pi386 -Tlinux -Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg compilertest.pas
TFPCTargetConfigCache.Update WARNING: no unit paths: /home/me/Programs/fpc/2.5.1/bin/fpc -Pi386 -Tlinux -Fr/home/me/Programs/lazarus/lazarus-svn/components/codetools/fpc.errore.msg
TFPCTargetConfigCache.Update: has changed
The odd thing is that if I launch a terminal and enter the script lines manually, everything works fine.
The script is:
#!/bin/sh
export PATH=~/Programs/fpc/2.5.1/lib/fpc/2.5.1:$PATH
export PATH=~/Programs/fpc/2.5.1/bin:$PATH
echo $PATH
cd /home/me/Programs/fpc/fpsrc/2.5.1
/home/me/Programs/lazarus/lazarus-svn/lazarus --primary-config-path="/home/me/Programs/lazarus"
Mantis conversion info:
- Mantis ID: 17701
- Version: 0.9.29 (SVN)