Boost logo

Boost-Build :

From: Rene Rivera (grafik666_at_[hidden])
Date: 2003-08-24 10:10:11


[2003-08-24] Daryle Walker wrote:

>By the way, I'm using the compiled binary of BJam (for Mac OS X) that
>is on the SourceForge download page. It's called
>"bjam-3.1.4-1-macosxppc.tgz" and its date is 2-Feb-2003. Would using a
>compile-it-yourself version be better?

No better in this case. Better in other terms, like less bugs :-)

>On Friday, August 22, 2003, at 8:47 AM, Rene Rivera wrote:
>
>> [2003-08-22] Daryle Walker wrote:
>>
>>> [I originally posted this on the Install list.]
>>>
>>> This is really more of an UNIX & Mac OS X question.
>>>
>>> I'm trying out an already-built executable of BJam on my Mac OS X
>>> 10.2.6 system. I want to define BOOST_ROOT, etc., so the Jamfiles
>>> can see them. However, I can't get my shell (bash) to read the
>>> information off a dotfile when I open a terminal window. (I can get
>>> it to work when I enter stuff manually.) The system reads the
>>> additions of my PATH variable just fine, though. Do I need to do a
>>> total reboot (I've logged out and back in, but not rebooted), or am I
>>> writing the exporting commands wrong, or am I using the wrong
>>> dotfiles? (I used to remember UNIX so well....)
>>>
>>> BJam gives a warning about the Python shell variables not being
>>> defined. The suggested values are within a framework. Are there
>>> copies of the Python headers in the conventional spots I can use
>>> instead?
>>
>> Daryle we'll need more information than you give. Specifically what
>> the shell script looks like. Without that I can't say if you are
>> setting them correctly. Also, since it's an environment issue, could
>> you provide the output of the "env" command.
>
>I have this for my ".profile":
>
>//================================================================
>.. /sw/bin/init.sh
>BOOST_ROOT=~/Documents/Boost/boost_cvs/boost
>TOOLS=darwin
>ALL_LOCATE_TARGET=~/Documents/Boost/binaries
>export BOOST_ROOT TOOLS ALL_LOCATE_TARGET
>//================================================================

Not that this will make it work but I'd suggest using $HOME instead of "~".
"~" is a shell expansion and is usually not expanded in scripts.

>But none of it seems to be registering:
>
>//================================================================
>bash-2.05a$ env
>PWD=/Users/daryle
>TERM_PROGRAM=Apple_Terminal
>USER=daryle
>CVS_RSH=ssh
>TERMCAP=???
>LANG=en_US
>DISPLAY=localhost
>LOGNAME=daryle
>SHLVL=1
>SHELL=/bin/bash
>HOME=/Users/daryle
>SSH_ASKPASS=/Applications/SSHPassKey.app/Contents/MacOS/SSHPassKey
>TERM=vt100
>TERM_PROGRAM_VERSION=81
>PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/Developer/Tools:/
>Library/Tcl/bin:/sw/bin:/sw/sbin:/Users/daryle/bin
>__CF_USER_TEXT_ENCODING=0x1F5:0:0
>_=/usr/bin/env
>//================================================================
>
>I have the additions to PATH listed in my ".bash_login" file. When I
>put the Boost environmental variables in that same file, they were
>ignored.

This is definately _not_ a bjam problem. If the variables don't show up with
the "env" command bjam can't see them.

Have you tried putting the assignments in ".bashrc" ?

-- grafik - Don't Assume Anything
-- rrivera (at) acm.org - grafik (at) redshift-software.com
-- 102708583 (at) icq

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk