LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how do i install gcc from a tar.bz2 file when i have no C/C++ compiler installed (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-install-gcc-from-a-tar-bz2-file-when-i-have-no-c-c-compiler-installed-659982/)

ehawk 08-03-2008 03:33 AM

Yeah, I just feel bad when people are confused and despairing...intense sense of empathy...I want him to be successful and happy! I actually am a physics teacher....the desire to help is the same.

rahilmaknojia 08-03-2008 03:37 AM

Quote:

Originally Posted by ehawk (Post 3234955)
Yeah, I just feel bad when people are confused and despairing...intense sense of empathy...I want him to be successful and happy! I actually am a physics teacher....the desire to help is the same.

Kool ur teacher now next time I have to say "sir" to you, Anyway you did good, you I was also having same problem like him, I wasnt able to install any packages, bcoz RHN block my yum service then I decided to use CentOS bcoz its with free updates and i like it..

ehawk 08-03-2008 03:46 AM

No, no one has to call me sir! =)

My name is Eric, and that is fine...

rahilmaknojia 08-03-2008 03:53 AM

Quote:

Originally Posted by ehawk (Post 3234962)
No, no one has to call me sir! =)

My name is Eric, and that is fine...

I was just kiddin, I got some problem with yum server, I have created repo file in /etc/yum.repos.d/server.repo, and I have done createrepo /var/ftp/pub/CentOS/ and restarted vsftpd service

configuration file of repo is below

[server installer]
name=CentOS Linux
baseurl=ftp://172.16.19.66/pub/CentOS/
enabled=1
gpgcheck=0


when I run yum install packagename I get this error below

[root@rahil /]# yum install bind
ftp://172.16.19.66/pub/CentOS/repodata/repomd.xml: [Errno 4] IOError: [Errno ftp error] 550 Failed to change directory.
Trying other mirror.
Error: Cannot retrieve repository metadata (repomd.xml) for repository: server installer. Please verify its path and try again


Let me know any solution with this.

rahilmaknojia 08-03-2008 04:03 AM

I found the solution of this error, but i have to disable SElinux to run yum install package name, is there any other way to run yum command wen SElinux is ON

ehawk 08-03-2008 04:14 AM

Is this relevant? Bug that is fixed now in last day:

http://bugs.centos.org/view.php?id=2997

Also

http://www.linuxtopia.org/online_boo...tion-0068.html

sagitalk 08-04-2008 09:04 AM

hello friends,


i finally managed to install a C/C++ compiler....now i have got gcc yipee.......i am just a student so the entire process was a little harrowing....i am glad that alls well now....as told by you all i changed the repository from the RHN to Centos and used the yum command....i did a little bit to reading up on the yum command....i understood that installing individual packages is no good this cycle of dependencies is really vicious.....i issued the yum command and got all things done with the help of the Centos repository....i am really glad....after that now i have installed gnuplot and xpdf too!!!!!!....now once i have a compiler i realise that its just a matter of ./conigure....make....and make install....glad to step into this linux world....thank you all....sagitalk

ehawk 08-04-2008 03:31 PM

Glad to hear that you are making progress! You could probably also use yum to install all of the other applications you want, like gnuplot and xpdf. Using the package manager is preferred to installing from source code and compiling, because the package manager now remembers what versions of the applications are installed, and can prompt you for updates and remove the older installed versions for you. If you compile from source code, you have to do this stuff on your own (remembering what version you have installed and cleaning up things and removing this old compiled code once you install newer versions. Things can get messy if maintaining everything from source code, unless you are using a distribution which was intended to work this way, like Gentoo, which you are not.


All times are GMT -5. The time now is 10:25 PM.