Wayne Boucher wrote:
> Hello,
>
> Some people will have LD_LIBRARY_PATH already set, in which case they
> should do what Eiso says, but some people will not have LD_LIBRARY_PATH
> already set, in which case they should not include the ${LD_LIBRARY_PATH}.
> (I'm sure there's a way in Unix to check if the variable is set, and if it
> is use the one form and if not the other. I just can't remember the
> syntax.)
like this for example(tcsh):
if ($?LD_LIBRARYPATH) then
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/mesa6.0/lib
else
setenv LD_LIBRARY_PATH ${CCPNMR_TOP_DIR}/mesa6.0/lib
endif
but it was already set a few lines earlier, so the default (install
everything from the ccpn distribution) would be something like this:
setenv TCL_LIBRARY {$CCPNMR_TOP_DIR}/tcl8.3/lib/tcl8.3
setenv TK_LIBRARY {$CCPNMR_TOP_DIR}/tk8.3/lib/tk8.3
if ($?LD_LIBRARYPATH) then
# could be on one line.
# split just to keep the line from folding.
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/tcl8.3/lib
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/tk8.3/lib
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/mesa6.0/lib
else
setenv LD_LIBRARY_PATH
${CCPNMR_TOP_DIR}/tcl8.3/lib:${CCPNMR_TOP_DIR}/tk8.3/lib
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/mesa6.0/lib
endif
> If you are using Mesa for the GL/glut then you are definitely using glut,
> not freeglut. The one thing I can say about GL and glut is that you had
> better use a glut that was compiled against the same GL as you are
> compiling Analysis against (and ditto at run-time with the libraries being
> picked up), otherwise all hell tends to break loose (i.e. the program will
> crash). With Mesa this should happen automatically at the compilation
> stage, and also at runtime if the LD_LIBRARY_PATH is set (although the OS
> always looks in the "standard" places for libraries, but I think/hope that
> on Linux it looks where you tell it to look first).
ok thanks,
Eiso
>
> Wayne
>
> On Tue, 17 Jan 2006, eiso wrote:
>
>
>>hi,
>>
>>from the INSTALL file
>>
>>"""
>>To get compilation of Python to work with the distributed versions
>>of Tcl/Tk you might need to set the following environment variables
>>first:
>>
>> setenv LD_LIBRARY_PATH
>>${CCPNMR_TOP_DIR}/tcl8.3/lib:${CCPNMR_TOP_DIR}/tk8.3/lib
>> setenv TCL_LIBRARY {$CCPNMR_TOP_DIR}/tcl8.3/lib/tcl8.3
>> setenv TK_LIBRARY {$CCPNMR_TOP_DIR}/tk8.3/lib/tk8.3
>>
>>where CCPNMR_TOP_DIR is is the ccpnmr directory created by the
>>unpacking of the tar file (as hopefully set following the
>>instructions above).
>>
>>And to get the compilation of Analysis to work with the distributed
>>version of Mesa you might need to set:
>>
>> setenv LD_LIBRARY_PATH ${CCPNMR_TOP_DIR}/mesa6.0/lib
>>"""
>>
>>
>>because LD_LIBRARY_PATH is already set before, it's probably better to
>>make the last line
>>
>>setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${CCPNMR_TOP_DIR}/mesa6.0/lib
>>
>>
>>also I'm having trouble with the glut/freeglut questions during
>>installation. How do I know which of the two (glut/freeglut) I have
>>or don't have and what to answer?
>>
>>Eiso
>>
>
>
|