LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   export PATH Question (https://www.linuxquestions.org/questions/linux-software-2/export-path-question-403476/)

Loosewheel 01-14-2006 10:13 PM

export PATH Question
 
Hi All,
I tried to run RP-PPPoE setup and got: "No compiler in path"
"whereis gcc" gives me: /usr/lib/gcc/i486-linux-gnu/4.0.2
After looking around the forum, I got to wondering if gcc wasn't supposed to be in a /bin directory somewhere ?
Do I go to a terminal and type..."export PATH="the above path":$PATH"?
BTW; I extracterd rp-pppoe-3.7.tar.gz to /opt...and made a .desktop file. and the name of the gcc file is cc1.
I'm not well versed on this, so I hope this info is ok.

megaspaz 01-14-2006 10:55 PM

Quote:

Originally Posted by Loosewheel
Hi All,
I tried to run RP-PPPoE setup and got: "No compiler in path"
"whereis gcc" gives me: /usr/lib/gcc/i486-linux-gnu/4.0.2
After looking around the forum, I got to wondering if gcc wasn't supposed to be in a /bin directory somewhere ?
Do I go to a terminal and type..."export PATH="the above path":$PATH"?
BTW; I extracterd rp-pppoe-3.7.tar.gz to /opt...and made a .desktop file. and the name of the gcc file is cc1.
I'm not well versed on this, so I hope this info is ok.

Yes, but that's only for that shell's session. To make it permanent globally for all users, put that line in your /etc/profile file. To make it permanent for a specific user, put it in your user's .bashrc file.

In regards to your install path, depending on how you set the prefix, bindir, etc. options with ./configure, your install path could be valid (maybe that's the default install path, i don't know). But usually with rpm packages, when installing gcc, yeah, you should see the compiler executable in /usr/bin... But it could be different for different distros, I just don't know enough to say for sure.

Loosewheel 01-14-2006 11:23 PM

Quote:

Originally Posted by megaspaz
Yes, but that's only for that shell's session. To make it permanent globally for all users, put that line in your /etc/profile file. To make it permanent for a specific user, put it in your user's .bashrc file.

In regards to your install path, depending on how you set the prefix, bindir, etc. options with ./configure, your install path could be valid (maybe that's the default install path, i don't know). But usually with rpm packages, when installing gcc, yeah, you should see the compiler executable in /usr/bin... But it could be different for different distros, I just don't know enough to say for sure.

Thanks for the reply megaspaz,
Ubuntu install put gcc where it is- I didn't install it.
And I'm just going to try to install RP-PPPoE for now, so I guess I don't need to put that line in my .bashrc file? This is a single user machine. I will give it a try...thanks again.

IBall 01-15-2006 07:24 PM

Are you sure that gcc is actually installed?

It does not get installed in ubuntu be default, so you may have to install it using:
Code:

apt-get install gcc
Normally, if it is installed, it will be in /usr/bin, and called gcc.

I hope this helps
--Ian

Loosewheel 01-16-2006 04:31 PM

Quote:

Originally Posted by IBall
Are you sure that gcc is actually installed?

It does not get installed in ubuntu be default, so you may have to install it using:
Code:

apt-get install gcc
Normally, if it is installed, it will be in /usr/bin, and called gcc.

I hope this helps
--Ian


Originally, whereis gcc was: /usr/lib/...
I did "apt-get install gcc", and now have "/usr/bin"
Ran "/opt/rp-pppoe-3.7/go-gui" and get: "Configure: error: C Compiler can not create executables".
Configure: failed program was: /* confdefs.h. */
define Package_Name ""
_Tarname
_Version
_String
_Bugreport
/* end confdefs.h. */

I have no idea what that means....hope someone can help.
Thanks for all the replies thus far.

Loosewheel 01-18-2006 01:44 PM

Problem sloved. Thanks megaspaz and IBall.
"No compiler in path" = was not installed. (Thanks IBall: gcc-4.0-base was installed, but not gcc-4.0)
"No acceptable compiler found" = went back to synaptic package manager and installed gcc. (evidentally it didn't like gcc-4.0)
"Can not create executables" = installed "recommended" libc6.

Then, it started to configure...but stopped at "make.....Back to synaptic and installed "suggested" make.

I now have rp-pppoe-3.7 installed.


All times are GMT -5. The time now is 10:32 AM.