LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to install id3tool to Centos 5.5 server (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-id3tool-to-centos-5-5-server-872388/)

osmy 04-01-2011 09:08 AM

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

knudfl 04-01-2011 09:48 AM

1 Attachment(s)
# 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
..

osmy 04-01-2011 11:02 AM

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!

knudfl 04-01-2011 11:41 AM

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
..

osmy 04-01-2011 12:26 PM

Quote:

Originally Posted by knudfl (Post 4310875)
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

osmy 04-01-2011 12:36 PM

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}

osmy 04-01-2011 01:33 PM

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

?

osmy 04-01-2011 02:56 PM

Quote:

Originally Posted by osmy (Post 4310974)
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

knudfl 04-01-2011 06:33 PM

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.)
..

osmy 04-01-2011 07:21 PM

Quote:

Originally Posted by knudfl (Post 4311154)
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 =)

knudfl 04-02-2011 04:10 AM

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

osmy 04-02-2011 01:14 PM

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!

osmy 04-02-2011 02:45 PM

hey just realised that it's under /usr/src/redhat/RPMS/x86_64 on root? Is it ok?

knudfl 04-02-2011 03:00 PM

/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.

osmy 04-02-2011 03:43 PM

I checked it everything is working thanks knudfl you're the real Guru =)


All times are GMT -5. The time now is 05:03 AM.