LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2009, 02:40 PM   #1
gwbaby
LQ Newbie
 
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15

Rep: Reputation: 0
Smile install RPM package


@QLinux ~]$ su
Password:
[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# rpm -Uvh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# service mysql status
mysql: unrecognized service
[root@QLinux q]#


----------------------------------------
I got a package mysql. I was trying to install this, but failed. Where am i wrong?
 
Old 07-10-2009, 02:43 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
Quote:
[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
Seems to me mysql is allready installed.

Quote:
[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
To install an rpm, you need the rpm.
Code:
rpm -ivh mysql-5.1.35-1.fc11.i586.rpm
 
Old 07-10-2009, 02:57 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,272

Rep: Reputation: 148Reputation: 148
As I have seen you post, Mysql already installed at your system
Quote:
[root@QLinux q]# rpm -qa | grep mysql
mysql-libs-5.1.35-1.fc11.i586
mysql-5.1.35-1.fc11.i586
the above output means that there is a installed mysql(5.1.35-1.fc11 --> version of the mysql) by using this rpm -qa and grep option you can check whether there is a specific application installed or not

If you want to install or upgrade a rpm, the rpm file should be there at your current directory(name.rpm file), rpm -ivh option for fresh installation and rpm -Uvh upgrading the exiting version.

Quote:
[root@QLinux q]# rpm -ivh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
[root@QLinux q]# rpm -Uvh mysql-5.1.35-1.fc11.i586
error: open of mysql-5.1.35-1.fc11.i586 failed: No such file or directory
the above output is correct because you don't have rpm files on that current directory.

method should be
rpm -ivh name.rpm
rpm -Uvh name.rpm
 
Old 07-10-2009, 03:25 PM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,527

Rep: Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898Reputation: 898
To get you started with rpm packaging:
http://www.cyberciti.biz/faq/how-do-...ll-suse-linux/
 
Old 07-10-2009, 04:08 PM   #5
gwbaby
LQ Newbie
 
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 0
Wink Perl(DBI)

gnome-search-tool.desktop MySQL-server-5.1.36-0.glibc23.i386.rpm
gnome-terminal.desktop
[root@QLinux Desktop]# rpm -Uvh MySQL-server-5.1.36-0.glibc23.i386.rpm
error: Failed dependencies:
perl(DBI) is needed by MySQL-server-5.1.36-0.glibc23.i386
[root@QLinux Desktop]# ^C
[root@QLinux Desktop]# yum install perl
Loaded plugins: refresh-packagekit
Setting up Install Process
Package 4erl-5.10.0-69.fc11.i586 already installed and latest version
Nothing to do

---------------------------------------
Thanks for your all answers. I went to the folder and tried to install, now I got dependecies error. I went to software upgrade, there is not such a perl related update. I tried "yum", too, seems like i have already this, or not..

Where am i wrong?
 
Old 07-10-2009, 04:23 PM   #6
gwbaby
LQ Newbie
 
Registered: Jul 2009
Distribution: Fedora 11
Posts: 15

Original Poster
Rep: Reputation: 0
already installed?

that's true when I do "rpm -qa | grep mysql", I can see package, does that mean I already installed package, or I need to rpm -Uvh command?

If package is already installed, why can't i find any service mysql from service? As you can see "service mysql status" unrecognized service.

1. Did i install already "mysql" package?
2. If yes, how can i run mysql? why can't i find mysql service from service list?
3. If I already install mysql correctly, do i need to still download "perl(DBI)" for dependency?

Thanks for your knowledge and answer.
 
Old 07-10-2009, 04:53 PM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,272

Rep: Reputation: 148Reputation: 148
As i have referred to your previous post your system not existing with any older version of
Quote:
MySQL-server-5.1.36-0.glibc23.i386.rpm
so if you want to install this rpm just use rpm -ivh name.rpm,
if there is any dependencies for package installation you have install the dependencies too. rpm having option to ignore the dependencies (--nodeps) but i don't think this is a good practice to install packages.

Actually "service mysqld start" its referring whether is there startup script with name of mysqld at /etc/rc.d/init.d directory, therefore please makesure the startup script is existing on the above mentioned location.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
rpm package install nedzer Linux - Enterprise 8 12-10-2008 06:37 AM
rpm package install - RealPlayer10GOLD.rpm tslinux Linux - Newbie 7 09-08-2007 10:28 PM
how do i install an RPM package? marvelade Linux - Newbie 15 12-25-2006 05:32 PM
I can't install with RPM package. PICOspark Linux - Newbie 8 04-06-2005 07:40 AM
Install package with RPM nobyone Linux - Newbie 4 04-01-2004 11:50 AM


All times are GMT -5. The time now is 01:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration