LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2007, 01:17 PM   #1
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Rep: Reputation: 0
Question How does one recompile rpm?


How does one recompile rpm? Will I have to reinstall my system or can I do it from KDE? I'm a newbie, sorry for the dumb question.
 
Old 03-05-2007, 01:20 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Do you mean recompile the rpm utility?? Why would you need to do this?

What problem are you trying to solve?

What distribution?
 
Old 03-05-2007, 01:43 PM   #3
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by pixellany
Do you mean recompile the rpm utility?? Why would you need to do this?

What problem are you trying to solve?

What distribution?
I'm trying to install an Intuos serial wacom tablet on i386-redhat-linux. I attached my tablet and downloaded linuxwacom-0.7.6-4 from the linuxwacom.com site.
I unpacked the contents into /usr/X11R6/lib/modules and tried to run the ./configure script. I got error messages:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Then I did a search for my gcc and found it in:
/usr/libexec/gcc

Is there a problem with the path of gcc when it's trying to install the program into /usr/bin ?

What can I do to install this correctly?

I'm running KDE and am wondering if I need to recompile?
 
Old 03-05-2007, 02:11 PM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
The root cause appears to be that it cannot find the compiler. Have you successfully compiled SW on this machine?---ie do you know that gcc is installed and working? Is /usr/libexec/gcc in PATH?

To fix this, you will wind up installing gcc---or possibly just changing the PATH variable. You will not need to recompile anything (and certainly not rpm)

What version of RedHat?---eg RedHat 9, Fedora XX, RedHat enterprise 3 or 4
 
Old 03-05-2007, 02:33 PM   #5
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
You might need the compatibility (or whatever) files for an older compiler.Like compat-libstdc++-33 for "The compat-libstdc++ package contains compatibility standard C++ library
from GCC 3.3.4." They are available via yum.

Lazlow
 
Old 03-06-2007, 09:15 AM   #6
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the help

Thanks!
Quote:
Originally Posted by pixellany
The root cause appears to be that it cannot find the compiler. Have you successfully compiled SW on this machine?---ie do you know that gcc is installed and working? Is /usr/libexec/gcc in PATH?

This is the exact path to the gcc: /usr/libexec/gcc/i386-redhat-linux/4.0.0

I'm not sure if it's working, I think it's working ok. I was able to install other programs like Shake and Wine, Photoshop.

To fix this, you will wind up installing gcc---or possibly just changing the PATH variable. You will not need to recompile anything (and certainly not rpm)

I don't know how to change the PATH variable or where to change it. Do I need to specify the PATH when I'm running the ./configure && make command from /usr/X11R6/lib/modules where my Wacom driver files are? What would be the command for that?

What version of RedHat?---eg RedHat 9, Fedora XX, RedHat enterprise 3 or 4
I think I'm running FC4. How can I check the version? I have a KDE environment.

I really appreciate your help.

Pan.
 
Old 03-06-2007, 09:16 AM   #7
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the help

Quote:
Originally Posted by pixellany
The root cause appears to be that it cannot find the compiler. Have you successfully compiled SW on this machine?---ie do you know that gcc is installed and working? Is /usr/libexec/gcc in PATH?

To fix this, you will wind up installing gcc---or possibly just changing the PATH variable. You will not need to recompile anything (and certainly not rpm)

What version of RedHat?---eg RedHat 9, Fedora XX, RedHat enterprise 3 or 4
Thanks!
This is the exact path to the gcc: /usr/libexec/gcc/i386-redhat-linux/4.0.0

I'm not sure if it's working, I think it's working ok. I was able to install other programs like Shake and Wine, Photoshop.

I don't know how to change the PATH variable or where to change it. Do I need to specify the PATH when I'm running the ./configure && make command from /usr/X11R6/lib/modules where my Wacom driver files are? What would be the command for that?

I think I'm running FC4. How can I check the version? I have a KDE environment.

I really appreciate your help.

Pan.
 
Old 03-06-2007, 09:28 AM   #8
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow
You might need the compatibility (or whatever) files for an older compiler.Like compat-libstdc++-33 for "The compat-libstdc++ package contains compatibility standard C++ library
from GCC 3.3.4." They are available via yum.

Lazlow
This is probably a dumb question, but is there anything I need to uninstall before installing the compat-libstdc++-33-3.2.3-47.3.i386.rpm package?
Will it overwrite any of the programs I now have installed like Shake, Wine, Photoshop?

How can I specify where to istall it, or does it use a default path i.e. /usr/bin ?

Thanks
 
Old 03-06-2007, 01:58 PM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
pan

Just 'yum install compat-libstdc++-33' it will take care of all the rest. It will add stuff, not replace stuff. It just adds the ability to run stuff that was made to use on the older compliers.

As a general rule one does not need to worry about where to install stuff, if one uses yum or rpms. The system puts stuff where it needs it to go. This is so if other stuff needs to use it too, it will know where to find it. I know it is quite a change from windows, but it is really nice once you get used to it.

Lazlow

Edit:

Here is a howto maybe it will help: http://linuxwacom.sourceforge.net/index.php/minihowto

Last edited by lazlow; 03-06-2007 at 02:04 PM.
 
Old 03-06-2007, 02:45 PM   #10
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by lazlow
pan

Just 'yum install compat-libstdc++-33' it will take care of all the rest. It will add stuff, not replace stuff. It just adds the ability to run stuff that was made to use on the older compliers.

As a general rule one does not need to worry about where to install stuff, if one uses yum or rpms. The system puts stuff where it needs it to go. This is so if other stuff needs to use it too, it will know where to find it. I know it is quite a change from windows, but it is really nice once you get used to it.

Lazlow

Edit:

Here is a howto maybe it will help: http://linuxwacom.sourceforge.net/index.php/minihowto

I just tried to install the compat-libstdc++-33 and it looks like it's already installed:

Setting up Install Process
Setting up repositories
updates-released 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
base 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
Examining compat-libstdc++-33-3.2.3-47.3.i386.rpm: compat-libstdc++-33 - 3.2.3-47.3.i386
compat-libstdc++-33-3.2.3-47.3.i386.rpm: does not update installed package.
Nothing to do

It doesn't seem to be helping my problem with gcc PATH not being found.
 
Old 03-06-2007, 05:43 PM   #11
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
Quote:
I think I'm running FC4. How can I check the version?
Code:
uname -a
Quote:
to run the ./configure script. I got error messages: checking for a BSD-compatible install...
Get the correct .rpm for you distibution and version of Linux.
 
Old 03-07-2007, 10:04 AM   #12
pan
LQ Newbie
 
Registered: Mar 2007
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by teckk
Code:
uname -a
Get the correct .rpm for you distibution and version of Linux.
This is the version I'm running:

[root@localhost 4.0.0]# uname -a
Linux localhost.localdomain 2.6.11-1.1369_FC4smp #1 SMP Thu Jun 2 23:08:39 EDT 2 005 i686 athlon i386 GNU/Linux

According to the linuxwacomproject support I have the rpm needed for my system.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
counter part of "rpm -ivh --force kernel....rpm in slackware b0nd Slackware 2 01-28-2006 07:46 PM
Recompile Kernel .src/.rpm - advice seek lets-eat-gary Linux - Software 6 05-10-2005 02:19 AM
How to uninstall a non-rpm kernel recompile gchandler Fedora 5 08-05-2004 06:47 AM
rpm error only says"rpm: relocation error: rpm: undefined symbol: poptAliasOptions" dlrsims Linux - Newbie 2 11-14-2003 09:22 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration