Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
(as root, for read permissions) find / -name gcc
should tell you where gcc is located. Replace gcc with ar to find where ar is.
Then, add that directory to $PATH by adding the lines
PATH=$PATH:[dir]
export PATH
to /home/your-name/.bash_profile where 'dir' is the directory where those files are located. If there's more than one directory, then separate them with a colon in the first line.
PATH=$PATH:[dir]:[dir2]:[dir3] and so on...
Logout and log back in to apply changes.
Hope this helps.
Last edited by johndoe0028; 03-31-2006 at 01:10 AM.
[root@localhost ~]# find / -name ar
/usr/lib/openoffice.org2.0/share/wordbook/ar
/usr/share/gok/ar
/usr/share/locale/ar
find: WARNING: Hard link count is wrong for /selinux: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
[root@localhost ~]# find / -name gcc
/usr/libexec/gcc
find: WARNING: Hard link count is wrong for /selinux: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
Since I am a newbie, I need a little hand holding.
I assume I type
PATH=$PATH:/usr/share/gok/ar:/usr/share/locale/ar:/usr/libexec/gcc
What comes next? If I am running logged in as the root do I type the Following
export PATH
First, make sure the file is executable. type the full path of the file into a terminal, and press enter. If it says something like "Permission denied", then the file is not executable. Keep trying until you get one that has a non-error output. If there is no executable, then you probably do not have that package installed. Sorry I did not state that in the first post.
Use a text editor to add the line to /home/name/.bash_profile. Kedit, KWrite, Gedit etc...will work fine. When you add the directories, make sure you don't incluide the file name.
For example, let's say that gcc is /usr/local/bin/gcc. You would add /usr/local/bin to $PATH. Else the system will treat 'gcc' as another sub-directory, and it will not get added. Use the actual directory that gcc is located in instead of /usr/local/bin
Also, make sure there is a trailing new line at the end of the file. That is, after 'export PATH', press enter again to make a new line. That usually is required for the computer to read the last line of a file.
Let me know if there's anything else that's confusing.
Hope this helps.
Last edited by johndoe0028; 03-31-2006 at 01:18 AM.
Reason: Clarifying stuff
Thanks for your help, johndoes, I really appreciate it.
there doesn't seem to be a gcc executable. any thoughts what it would be called. For instance, in windows .exe is an executable file. If it isn't installed, is there a place to downlaod it, since I cna't use yum since I can't get to the internet on this computer
You may have the gcc package on your installation disks. The best place to locate RPMs is using http://rpm.pbone.net
You can filter the search by your distro and check your dependencies. Copying the location of the link to download the file can also help you locate a repository.
... I can't get to the internet on this computer
That's why.
Alright, pull a pre-made FC5 rpm off The Internet and sneakernet it (USB drive, CDRW) to the FC5 box? http://rpm.livna.org/fedora/5/i386/n....lvn5.i386.rpm
I'd take potential dependency woes over this source building mess any day but thats just MHFO...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.