Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with rpm

Status
Not open for further replies.

ceimon

Programmer
Sep 25, 2002
14
0
0
US
I used rpm to install MySQL with the command:
-->% rpm -ivh mysql.src.rpm
I didn't get any errors and it showed the progress hash mars and everything. However, when issue the command:
-->% rpm -q MySQL
it responds saying the MySQL is not installed. I check the folders in the RPM directory and there is a mysql source file and .spec file. Can someone please tell me what I'm doing wrong.
 
I tried both of those statements. The first said:
package mysql is not installed
The other returned nothing
 
when I tried it using the --rebuild option. It configured it, but I got an error during the build process.

 
You didn't say what OS you are running, so I'll assume Red Hat.


When you install a source RPM, the contents of the SRPM are extracted within the /usr/src/redhat directory structure.

/usr/src/redhat/<subdir>

SOURCES - contains the original program source code
SPECS - contains spec files, which control the RPM build process
BUILD - source code is unpacked and built here
RPMS - contains the output binary RPM
SRPMS - contains the SRPM created by the build process

To modify an SRPM compile-time options, you need to modify the spec file (inside the /usr/src/redhat/SPEC/ folder) and build a new RPM and SRPM.

To build an RPM and SRPM…

rpmbuild -ba foo-3.11.spec

…or to just create a binary RPM…

rpmbuild -bb foo-3.11.spec


ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top