Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
HI all,
I really need some help here...
I was not sure I had gcc installed with my LInux. So I tried rpm -qa | grep gcc and it gave me:
libgcc-3.2.2-5
So I am assuming I have gcc3.2.2 installed, right ?
When I try to look for it using :
locate */gcc , I get : locate: No match.
ls -l /usr/bin/gcc , I get : ls: /usr/bin/gcc: No such file or directory
find / -name gcc , I get :
find: /lost+found: Permission denied
find: /boot/lost+found: Permission denied
find: /proc/1/fd: Permission denied
find: /proc/2/fd: Permission denied
find: /proc/3/fd: Permission denied
find: /proc/8/fd: Permission denied
find: /proc/4/fd: Permission denied
find: /proc/5/fd: Permission denied
find: /proc/6/fd: Permission denied
find: /proc/7/fd: Permission denied
find: /proc/9/fd: Permission denied
find: /proc/10/fd: Permission denied
find: /proc/14/fd: Permission denied
find: /proc/72/fd: Permission denied
find: /proc/1717/fd: Permission denied
.....
I know I have to change permissions, If you can please tell me how and for what exactely. But , I am not even sure I have gcc because of what I get when I do: locate*/gcc
Also I do not have it in the $PATH
When I do echo $PATH , I get :
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/X11R6/bin
When I vi .bashrc , I get:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
Please also tell me how to add gcc to the PATH and whether I need any modification in .bashrc
When I use the command : cat /proc/version I get
Linux version 2.4.20-6 (bhcompile@porky.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Feb 27 10:06:59 EST 2003
But when I try to get the version of the gcc i have. Iget gcc: command not found. Can only the gcc libraries be installed with Linuc and not the gcc itself?
I have been trying to install gcc from scratch but I ran into different other problem.
I have Linux 9.0. I thought it just comes with gcc. I cannot find it. I looked in /usr/bin and gcc ins't there. I have trying to install it from scratch but I am running into different problems. If it is only there and it is a matter of finding it and setting paths, please let me know. I need help.
thanks
When I installed redhat, I selected the default option that was recommanded. Can I use the cd to install more packages or isit going to override what I have installed now?
I tried "yum install gcc" and I got : yum: Command not found
I noticed that for most common commands, even for export I get command not found. Is it something with the shell.
I am going to try to install the apt4rpm
I will let you know
Originally posted by gamor When I installed redhat, I selected the default option that was recommanded. Can I use the cd to install more packages or isit going to override what I have installed now?
I tried "yum install gcc" and I got : yum: Command not found
I noticed that for most common commands, even for export I get command not found. Is it something with the shell.
I am going to try to install the apt4rpm
I will let you know
Remember, to administer your system, you must be root, so in an x-terminal or virtual terminal, if you are logged in as a user, use this command to gain full root power:
su -
<give password>
Now you are root.
Code:
Thu Nov 11 05:28 PM fancy@tinwhistle ~ $ su -
Password:
Thu Nov 11 05:28 PM root@tinwhistle ~ #
redhat has a graphical package add/remove tool, not sure what its called, but its probably in your default kde/gnome desktop menus. you can use that to easily install gcc from your install disks.
iirc there is a section called "development tools" or something similar, in the graphical add/remove window - gcc is definitely on the default install disks, so look around in that section.
Yeah I went to add/remove packages in my gnome menu. YOu guys are right, I didn't install teh development tool package nor kernel development. But I don't see the kernel source package.
I am going to installl them from the disc now.
I just have one more question. I am going to need lex or flex. Does it usually come with the developmental package?
I really appreciate all your help.
Thanks a lot
Doing a Google search gives these Google hits for lex and flex, so it looks as if they are included in the kernel.
If you need to compile a custom kernel or modules for it (nvidia, winmodem, etc), check under /usr/src and see if there is a directrory named linux-<version number> and a symbolic link named linux that points there. If it is missing you need to install it.
The name of the package is kernel-source-<version number and possibly arch here>.rpm.
It can be installed from CD or internet (approx 40 megabytes)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.