On 08/04/10 11:21, Barry Jackson wrote:
So, now the problem seems to be the missing full path to hbmk2
Ignore that silly remark - hbmk2 is already in the path and should be found.
Something strange though.
I paused hbide just after it wrote (and closed) the temp script.
I found the script and ran it after displaying PATH and looking at the
script:-
[...@jackodesktop tmp]$ echo $PATH
/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/home/baz/Scripts:/home/baz/bin:/home/baz/SVN/harbour/bin/linux/gcc:/home/baz/SVN/harbour/lib/linux/gcc:/home/baz/SVN/harbour/include
[...@jackodesktop tmp]$ cat 7aqf54.sh
#!/bin/sh
export HB_COMPILER=gcc
export PATH=$PATH:/home/baz/SVN/harbour/bin/linux/gcc
export PATH=$PATH:/home/baz/SVN/harbour/lib/linux/gcc
export PATH=$PATH:/home/baz/SVN/harbour/include
export PATH=$PATH:/usr/bin/gcc:/usr/lib/gcc
[...@jackodesktop tmp]$ sh 7aqf54.sh
(no errors reported)
[...@jackodesktop tmp]$ echo $PATH
/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt4/bin:/home/baz/Scripts:/home/baz/bin:/home/baz/SVN/harbour/bin/linux/gcc:/home/baz/SVN/harbour/lib/linux/gcc:/home/baz/SVN/harbour/include
[...@jackodesktop tmp]$
Note that $PATH is not affected by running the script.
I thought it may be a permissions problem, or that it needed to be
executable, but
[...@jackodesktop tmp]$ chmod +x 7aqf54.sh
[...@jackodesktop tmp]$ ls -l 7aqf54.sh
-rwxrwxr-x 1 baz baz 233 2010-04-08 11:47 7aqf54.sh
Makes no difference. Still nothing is added to PATH.
Running :-
[...@jackodesktop tmp]$ export PATH=$PATH:/usr/bin/gcc:/usr/lib/gcc
at the command line DOES add those to the path.
Baffled...
Since hbmk2 is already in my PATH, I do not understand why the build
fails (despite the the script not modifying the PATH).
OK got some painting to do so will ponder this while brushing :-)
Rgds
Barry
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour