LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-13-2008, 06:48 PM   #1
CSIG
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Rep: Reputation: 1
installing mysql-devel on RHEL


A C application needs to be compiled remotely on a RHEL server. It has a working MySQL installation (can be accessed from a terminal and by the web server), though 'rpm -qi mysql' and 'rpm -qi mysql-devel' do report that these items are not installed. I have no specific information about the server setup, so I can't tell if MySQL has been compiled from source or has been added by other means.

To compile the C application I need mysql-devel installed. Running 'yum install mysql-devel' gave no results (probably a repository issue, though I want not to mess up with repo settings). Running "up2date -u mysql-devel" installed mysql-devel 4.1.20 3.RHEL4.1.el4_6.1 i386 from one of the CentOS4 repo's. However, compilation still fails due MySQL issues.

I don't want to break the server or changing/updating MySQL itself before gathering some reasonable infos.

So far I have been using Red Hat since version 5.2 up until 7.3, and later switched to Fedora, which I'm using up to this day. I have obviously no hands-on experience with RHEL (the remote system runs 2.6.9-67.0.15.EL).

The source code itself compiles fine on a Fedora system, with all relevant packages installed/updated by yum.

All response is appreciated.

Sincerely,
CSIG
 
Old 06-14-2008, 12:18 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 169Reputation: 169
Dealing with other peoples left overs can be a real pain. What I have seen happen is people have an older version of an app installed via rpm and then (without removing the rpm) compile a different (usually newer version) of the same app on the system. Since rpm only knows about stuff installed via rpm it installs new packages (-devel) based upon the older rpm version rather than the compiled version.(up2date, yum, smart, etc are just front ends for rpm).

Assuming a standard RHEL4 install, it should not have yum installed(RHEL did not switch to yum until V5). If it does have yum, then again you are dealing with someone else's left over mess. Generally (hopefully) RHEL4 systems use Centos' yum and repos (which is fine), but there are other versions running around.

The other issue you could be dealing with is that you apps dependencies are newer than the versions supported by RHEL4. Remember RHEL is based on Fedora. Once a RHEL version is released they do not generally upgrade major revision of the software, ie RHEL5.0 still runs FF 1.5 (security patches are still made for it). RHEL5 was based on FC6 and I THINK RHEL4 was based on FC3, so if you are comparing compiling on F8 to RHEL4 you MAY be comparing apples and oranges.

All that being said no one is really going to be able to help you until you post the EXACT error messages given on the failure.
 
Old 06-15-2008, 06:46 AM   #3
CSIG
LQ Newbie
 
Registered: Apr 2008
Posts: 11

Original Poster
Rep: Reputation: 1
solved

Thanks for your detailed response. Just a few follow-up notes how the situation was solved.

The server in question is a dedicated server hosted by HostGator. In the end I had to post a ticket to their Technical Support. This caused some delay, but in the end they installed mysql-devel stuff (I have to say that their Tech Support actually is fine and prompt).

I have no details about how they did it or what their concept is for installing/upgrading. They are obviously not using any of the common package managers, at least not for all packages. Given the amount of customers they handle I guess they have set up some custom procedure for installing some critical parts of systems. I assume MySQL can be considered critical. Some other packages that I needed, like ghostscript, were installed via rpm or yum. It was just confusing to find some packages represented in the RPM database and other ones not.

So mysql-devel has been installed, from that point on compilation worked fine, as the problems were due to unavailable mysql headers.

I didn't had to deal very intensely with that RHEL system, but was actually surprised that even on a Terminal it felt a bit more different from a Fedora system then I expected.
 
  


Reply

Tags
mysql, rhel


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RHEL - kernel-devel, repos and cml tools. mtravis Red Hat 24 11-07-2007 02:35 PM
yum install mysql-devel.i386 jbhanc0125 Linux - Newbie 3 04-01-2006 02:21 PM
Need help to install mysql devel in Solaris 8 hkuha Solaris / OpenSolaris 3 02-22-2005 10:29 PM
Installing XFree86-devel itsari7 Mandriva 8 02-20-2005 02:15 PM
install mysql-devel chr15t0 Slackware 10 02-08-2005 11:48 AM


All times are GMT -5. The time now is 11:42 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration