LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-01-2011, 10:08 AM   #1
osmy
Member
 
Registered: Mar 2011
Posts: 58

Rep: Reputation: 0
Exclamation How to install id3tool to Centos 5.5 server


Hi, how can I install id3tool to Centos 5.5 server, I know ubuntu version of it $ sudo apt-get install id3tool but do not know how to do this on Centos server via Ssh, please explain it step by step. Thanks
Osmy
 
Old 04-01-2011, 10:48 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# rpm -Uvh id3tool-1.2a-5el5.i386.rpm ( If you have a 32bits OS.)
https://docs.google.com/uc?id=0B7S25...CNaQzssE&hl=en

64bits : rpmbuild -bb id3tool-el5.spec
I.e. use the SRC RPM
ftp://ftp.sunet.se/pub/Linux/distrib...2011.0.src.rpm
..
Attached Files
File Type: txt id3tool-el5.spec.txt (696 Bytes, 11 views)
 
Old 04-01-2011, 12:02 PM   #3
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
I try to install 64bit I get this error.

rpmbuild -bb id3tool-el5.spec ftp://ftp.sunet.se/pub/Linux/distrib...2011.
error: failed to stat /root/id3tool-el5.spec: No such file or directory

What should I do and where should I install this.

Thanks for your response by the way!
 
Old 04-01-2011, 12:41 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The file 'id3tool-el5.spec' is visible in post # 1. (id3tool-el5.spec.txt)

Click it, and it will be downloaded.


And : /root/ is not recommended for "rpmbuild".
You can easily set up an 'unprivileged rpmbuild account' in /home/<name>/:
http://www.linuxquestions.org/questi...1-a-766486/#13
Then you can do the build as "user" ( no su ) :
1) Download the package id3tool-1.2a-5mdv2011.0.src.rpm
2) Unpack with : rpm -Uvh id3tool-1.2a-5mdv2011.0.src.rpm
3) Build a package : rpmbuild -bb id3tool-el5.spec
..

Last edited by knudfl; 04-01-2011 at 12:43 PM.
 
Old 04-01-2011, 01:26 PM   #5
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The file 'id3tool-el5.spec' is visible in post # 1. (id3tool-el5.spec.txt)

Click it, and it will be downloaded.


And : /root/ is not recommended for "rpmbuild".
You can easily set up an 'unprivileged rpmbuild account' in /home/<name>/:
http://www.linuxquestions.org/questi...1-a-766486/#13
Then you can do the build as "user" ( no su ) :
1) Download the package id3tool-1.2a-5mdv2011.0.src.rpm
2) Unpack with : rpm -Uvh id3tool-1.2a-5mdv2011.0.src.rpm
3) Build a package : rpmbuild -bb id3tool-el5.spec
..
your unprivileged rpmbuild account link is dead
 
Old 04-01-2011, 01:36 PM   #6
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
I lost my connection these are true commands for rpmbuild accound set up am I right?
mkdir -p --verbose $HOME/rpms/{BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp} &&
mkdir -p --verbose $HOME/rpms/RPMS/{athlon,i386,i486,i586,i686,noarch}
 
Old 04-01-2011, 02:33 PM   #7
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
rpm -Uvh id3tool-1.2a-5mdv2011.0.src.rpm
warning: id3tool-1.2a-5mdv2011.0.src.rpm: Header V3 DSA signature: NOKEY, key ID 26752624
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

?
 
Old 04-01-2011, 03:56 PM   #8
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by osmy View Post
rpm -Uvh id3tool-1.2a-5mdv2011.0.src.rpm
warning: id3tool-1.2a-5mdv2011.0.src.rpm: Header V3 DSA signature: NOKEY, key ID 26752624
error: cannot write to %sourcedir /usr/src/redhat/SOURCES

?
by the way I am using WHM CPANEL 11 based Vps server centos 5.5
 
Old 04-01-2011, 07:33 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The hidden file '/home/<your-user-name>/.rpmmacros' defines the rpmbuild environment.
http://www.linuxquestions.org/questi...1-a-766486/#13
Code:
%_topdir     /home/<username>/rpms
%_tmppath     %{_topdir}/tmp
If the file is missing the rpmbuild location is still /usr/src/redhat/.

I can also build the 64bits package and upload it to Google Docs.
Takes only a couple of minutes, when I am logged into the 64bits OS.
(But with no information about your OS, I just started out with a 32bits version.)
..
 
Old 04-01-2011, 08:21 PM   #10
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
The hidden file '/home/<your-user-name>/.rpmmacros' defines the rpmbuild environment.
http://www.linuxquestions.org/questi...1-a-766486/#13
Code:
%_topdir     /home/<username>/rpms
%_tmppath     %{_topdir}/tmp
If the file is missing the rpmbuild location is still /usr/src/redhat/.

I can also build the 64bits package and upload it to Google Docs.
Takes only a couple of minutes, when I am logged into the 64bits OS.
(But with no information about your OS, I just started out with a 32bits version.)
..
Thank you very much!
It's a VPS.
x86_64 x86_64 x86_64 GNU/Linux
It's 64bit Intel xeon(R) CPU L5520 @ 2.27GHz based, centos 5.5, (CENTOS 5.5 x86_64 virtuozzo).

If you write all the steps simple step by step, It would be piece of cake for me =)
 
Old 04-02-2011, 05:10 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
1) cd download/
(or wherever you have id3tool-1.2a-5mdv2011.0.src.rpm and id3tool-el5.spec.txt)
2) rpm -Uvh id3tool-1.2a-5mdv2011.0.src.rpm
3) rpmbuild -bb id3tool-el5.spec.txt

And the result will be here:
/home/<name>/rpms/RPMS/x86_64/id3tool-1.2a-5el5.x86_64.rpm

You can download the new 64bits package from :
https://docs.google.com/uc?id=0B7S25...CIvEk_cP&hl=en
 
Old 04-02-2011, 02:14 PM   #12
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
I did step 1 and 2 succesfully and installed %100 but in third step after rpmbuild -bb id3tool-el5.spec.txt I saw a command line like ''It's an old script'' I don't remember it exactly and also no /home/<name>/rpms/RPMS/x86_64/id3tool-1.2a-5el5.x86_64.rpm folder appeared. I guess there might be a problem on txt file or what do you think?
thanks for all your support knudfl!
 
Old 04-02-2011, 03:45 PM   #13
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
hey just realised that it's under /usr/src/redhat/RPMS/x86_64 on root? Is it ok?
 
Old 04-02-2011, 04:00 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
/usr/src/redhat/ is OK.

But it's always a bad idea running things as root,
when you can do the same job as "user".

That's why the rpmbuild in /home/* is recommended.
 
Old 04-02-2011, 04:43 PM   #15
osmy
Member
 
Registered: Mar 2011
Posts: 58

Original Poster
Rep: Reputation: 0
I checked it everything is working thanks knudfl you're the real Guru =)
 
  


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
how to install wireshark in CentOS 5 kelnel 2.6 server? malli42108 Linux - Newbie 8 11-23-2009 11:28 AM
cannot install mysql-server Centos 5.2 sycamorex Linux - Server 5 03-16-2009 08:12 PM
install centos 4 on hp ml370 g5 server mawad2007 Linux - Newbie 2 11-17-2008 01:47 AM
Load Gnome to Centos 5 Server install admad1 Linux - Newbie 4 12-28-2007 06:26 PM
problem with install on centos server elrehab Linux - Software 1 10-05-2005 06:18 PM


All times are GMT -5. The time now is 02:15 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