I dont have one
01-17-2001, 01:21 PM
I have GCC and i need to put it in my $PATH so when i run my ./configure pile i dont come up with the no C++ compiler error. Can someone help plz.
Thanx
Thanx
|
Click to See Complete Forum and Search --> : Putting into $PATH I dont have one 01-17-2001, 01:21 PM I have GCC and i need to put it in my $PATH so when i run my ./configure pile i dont come up with the no C++ compiler error. Can someone help plz. Thanx idealego 01-17-2001, 02:11 PM Just make a link to it. if you don't know where gcc is, try "whereis gcc" or "locate gcc" here how to make the link. so for example on my box gcc is here "/usr/bin/gcc-2.95.2" but linux is just looking for "gcc" so if I didn't already have the link I could type "ln /usr/bin/gcc-2.95.2 /usr/bin/gcc -s" and this would create a symbolic link to my gcc executable in the /usr/bin directory which should be in your path already. If you really want to edit your path it's usually found here "$HOME/.bashrc". Hope this helps. MBMarduk 01-17-2001, 03:09 PM Could be /etc/.profiles (?) according to one or more distros. -Mike Ripley 01-17-2001, 03:31 PM If you have the shadow password suite installed then look in /etc/login.defs for user and root path definitions. In such a case, you should only need to add PATH definitions to your own login files (ie... ~/.bashrc) if you have a ~/bin folder. Of course, I could be wrong... I dont have one 01-17-2001, 03:48 PM I have G++ installed on my box, and when i run ./configure to start the installation process it says searching for a c++ compiler... G++...no and i get an error msg, saying that my c++ compiler is not in $PATH. Whut do i need to do? Thanx 7 01-17-2001, 05:48 PM Do echo $PATH. If the g++ directory isnt there, do PATH="$PATH :DIRECTORY_NAME" to add it. Stick it in /etc/profile so it does it as boot. [This message has been edited by 7 (edited 17 January 2001).] justlinux.com
Copyright Internet.com Inc. All Rights Reserved. |