LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-14-2006, 11:13 PM   #1
Loosewheel
LQ Newbie
 
Registered: Jan 2006
Location: Montana
Distribution: PCLinuxOS-2007
Posts: 24

Rep: Reputation: 15
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.
 
Old 01-14-2006, 11:55 PM   #2
megaspaz
Senior Member
 
Registered: Nov 2002
Location: Silly Con Valley
Distribution: Red Hat 7.3, Red Hat 9.0
Posts: 2,054

Rep: Reputation: 46
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.
 
Old 01-15-2006, 12:23 AM   #3
Loosewheel
LQ Newbie
 
Registered: Jan 2006
Location: Montana
Distribution: PCLinuxOS-2007
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 01-15-2006, 08:24 PM   #4
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
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
 
Old 01-16-2006, 05:31 PM   #5
Loosewheel
LQ Newbie
 
Registered: Jan 2006
Location: Montana
Distribution: PCLinuxOS-2007
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
Old 01-18-2006, 02:44 PM   #6
Loosewheel
LQ Newbie
 
Registered: Jan 2006
Location: Montana
Distribution: PCLinuxOS-2007
Posts: 24

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH export in etc/profile.local adds dir twice tongar Linux - Newbie 3 06-16-2005 04:56 PM
export $PATH inside script gmitra Programming 3 02-01-2005 09:34 AM
'export PATH' does not work lemuel Linux - Newbie 7 01-30-2005 12:39 PM
export PATH disappears twallstr Linux - General 4 12-13-2004 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration