LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Where to set enviroment variables (https://www.linuxquestions.org/questions/linux-software-2/where-to-set-enviroment-variables-227227/)

vavoem 09-06-2004 04:34 AM

Where to set enviroment variables
 
Hello there

I'm trying to install qt 3.3.3 but i get some compilation errors
This is probably due to the fact that i don't know where to set the QTDIR env variable as is said in the INSTALL file before compilation
I've tried both .bash_profile in users home dir and .profile in root's home.
Logged off and in.
echo $QTDIR
nothing.

Anyone has some suggestion as to where to set these variables.

I'm running Debian Sarge.

mhearn 09-06-2004 04:56 AM

.bash_profile should work OK. Are you using export? ie,

export QTDIR=/foo/bar

vavoem 09-06-2004 05:52 AM

.bash_profile doesn't work whatshowever
I've tested this by adding a dir to the path env and that also doesn't work

i now tried to add something to /root/.bashrc
that seems to work but only for user root
perhaps a restart will solve it systemwide.

but i still get the same error compiling qt being.

/usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_getspecific'
/usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_key_create'
/usr/local/qt-x11-free-3.3.3/lib/libqt.so: undefined reference to `pthread_setspecific'
collect2: ld returned 1 exit status
make[4]: *** [../../../bin/uic] Error 1
make[4]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools/designer/uic'
make[3]: *** [sub-uic] Error 2
make[3]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools/designer'
make[2]: *** [sub-designer] Error 2
make[2]: Leaving directory `/usr/local/qt-x11-free-3.3.3/tools'
make[1]: *** [sub-tools] Error 2
make[1]: Leaving directory `/usr/local/qt-x11-free-3.3.3'
make: *** [init] Error 2
debian:/usr/local/qt-x11-free-3.3.3#

bathory 09-06-2004 08:03 AM

Add the:
Code:

export QTDIR=/path/to/qt
to /etc/profile

vavoem 09-06-2004 08:18 AM

thnx batory

mhearn 09-06-2004 09:58 AM

Looks like the Qt build system is busted.

vavoem 09-06-2004 01:39 PM

O.k. so i guess i just have to run make confclean and reconfigure?
possibly install something that has to do with pthread?

vavoem 09-07-2004 01:13 AM

O.k QT runs.

I have as said in previous post installed the
apt-get install kaffe-pthreads
apt-get install kaffe-pthreads-profile (however i'm not sure this one is neccesary)
added the enviroment variables mentioned in the INSTALL file to /etc/profile file
ran make confclean
./configure --threads (to make sure it uses the threads as they are needed to compile boson and prokyon3)
make

What i didn't find out however since kfind is not functioning is where the hell debian installed the imbedded qt and how and if i should remove it.
Anybody want's to tell me if it can cause trouble running both on one system?


All times are GMT -5. The time now is 06:31 PM.