Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 06:44:23 PM


Login with username, password and session length


Pages: [1] 2   Go Down
  Print  
Author Topic: whereis gcc or any c compiler?  (Read 1280 times)
ja_chu
Newbie
*
Offline Offline

Posts: 1


« on: May 26, 2007, 05:38:00 PM »

Does anybody have any success in compiling Apache modules? The apxs script cannot find gcc, and indeed, there doesn't seem to be any C compiler on the server.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #1 on: May 26, 2007, 10:21:52 PM »

Hi,

You need to add the compiler and its components using yum. But first you need to setup yum on your VPS:

Code:
1. rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm
2. yum makecache

Then you would setup gcc by executing "yum install gcc"

Please advise if you have any further questions.
Logged

Kind Regards,
Vlad Artamonov
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #2 on: May 27, 2007, 05:37:51 PM »

when i do the step 2 : "yum makecache", i got below error:

There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Mar 10 2006, 06:12:09)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq

Logged
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #3 on: May 27, 2007, 08:02:24 PM »

when i run "yum install gcc", i got below error:

Error: Missing Dependency: glibc-common = 2.3.4-2.25 is needed by package glibc-dummy-centos-4


Help please.  Help
Logged
boybawang
Intergalactic Cowboy
*****
Offline Offline

Posts: 53


Whatever and ever...


« Reply #4 on: May 27, 2007, 10:19:42 PM »

I supposed you already have properly installed yum
what you have to do yum install glibc-common
Yum performs intelligent reporting on what the exact library name you actually need to install a component (It aint correct all the time, tho). I this case you need glibc-common.
If you do yum search glibc-common, it will show the list of packages. In my case, (on a local pc) it showed glibc-common.i386. When you do yum install, you do not have to include the .i386 on the package name.

 After doing  yum install glibc-common, do  yum install gcc again.
Logged

Our On-line Pet Community
Need web application solutions? Just send me a message.
Own me!
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #5 on: May 28, 2007, 06:35:14 AM »

Hi,

glibc-dummy-centos-4 is a package from SW-Soft that can be safely removed. Run "yum remove glibc-dummy-centos-4" to remove it from the system and then try to install gcc again.
Logged

Kind Regards,
Vlad Artamonov
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #6 on: May 28, 2007, 06:58:25 AM »


Thanks, perestrelka! You are the man. Clapping

thanks boybawang too.
Logged
scgarris
Newbie
*
Offline Offline

Posts: 1


« Reply #7 on: May 28, 2007, 07:12:25 PM »

What was the solution to the cElementTree error message?

"There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:

   No module named cElementTree

Please install a package which provides this module, or
verify that the module is installed correctly.

It's possible that the above module doesn't match the
current version of Python, which is:
2.3.4 (#1, Mar 10 2006, 06:12:09)
[GCC 3.4.5 20051201 (Red Hat 3.4.5-2)]

If you cannot solve this problem yourself, please go to
the yum faq at:
  http://wiki.linux.duke.edu/YumFaq"
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #8 on: May 29, 2007, 09:51:02 PM »

Hi scgarris,

I believe you need to install this rpm to get rid of the error:

http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm

Please advise if you are still getting any errors after the above python module is installed.
Logged

Kind Regards,
Vlad Artamonov
nolimyn
Trekkie
**
Offline Offline

Posts: 19


« Reply #9 on: May 30, 2007, 09:10:48 AM »

To get this to work, I also needed to compile the urlgrabber module, which was at:

http://linux.duke.edu/projects/urlgrabber/download/urlgrabber-3.0.0.tar.gz

it was pretty straightforward, but it might save someone a trip to google.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #10 on: May 30, 2007, 09:24:53 PM »


It is better to use rpm packages on RPM systems such as CentOS. So you could install urlgrabber in RPM from any CentOS mirror.
Logged

Kind Regards,
Vlad Artamonov
vivalite
Intergalactic Cowboy
*****
Offline Offline

Posts: 52


« Reply #11 on: June 01, 2007, 09:55:16 PM »

yum install gcc-c++
worked for me
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1058



« Reply #12 on: June 02, 2007, 06:06:48 AM »

Quote
yum install gcc-c++
worked for me

yes, that will work when yum is already installed. The main problem to setup yum Wink
Logged

Kind Regards,
Vlad Artamonov
vivalite
Intergalactic Cowboy
*****
Offline Offline

Posts: 52


« Reply #13 on: June 02, 2007, 07:47:31 PM »

ic… I used to have similar trouble installing yum rpm but the problem also turned to be clear: missing dependences. One nice thing with rpm installation is that when it fails it prints out precise reason, e.g. missing dependence: xxxxx . All you have to do is google the missing rpm-> download -> install and then try installing yum again. Hope this helps.
Logged
testall
Intergalactic Cowboy
*****
Offline Offline

Posts: 70


« Reply #14 on: June 03, 2007, 12:22:41 PM »

# install yum:
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/yum-2.4.3-1.c4.noarch.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/python-elementtree-1.2.6-4.2.1.i386.rpm
rpm -ihv --nodeps http://mirror.centos.org/centos-4/4.4/os/i386/CentOS/RPMS/python-urlgrabber-2.9.8-2.noarch.rpm
yum makecache
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM