Help - Search - Members - Calendar
Full Version: I've never installed a package, and just want to be sure I'm doing it right.
The Planet Forums > Operating Systems > Red Hat Linux
dano2
Hi. I'm trying to install a PDF doc merger program that will be executed by the webuser. I'm assuming I could just run the command below, but I'm wondering if I should be using CPanel instead. Does it matter? The package isn't listed in CPanel's RPM Package Installer list, so how would I go about getting it in the list? Would an install like this require restarting anything? Are programs like this included in CPanel's daily backup? Where do you store rpm files after the install or do you just delete them? Does it matter who I execute it as, root or my webuser account, in order to be accessible to the webuser?

rpm -Uhv pdftk-1.12-0.i586.rpm

Lots of questions, I know.

Thanks.
Dan
James Jhurani
QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
Hi. I'm trying to install a PDF doc merger program that will be executed by the webuser. I'm assuming I could just run the command below

rpm -Uhv pdftk-1.12-0.i586.rpm


Yes, or you could use "rpm -i pdftk-1.12-0.i586.rpm". FYI, -U is for updating, -v is for verbose, and I believe -h is to check the hash.

QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
...but I'm wondering if I should be using CPanel instead. Does it matter?


Nope.

QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
The package isn't listed in CPanel's RPM Package Installer list, so how would I go about getting it in the list? Would an install like this require restarting anything?


Its not something they have added to WHM, so, the easy answer is no. The more technical answer, is if you feel like picking appart cPanel, i'm sure you could get it working.

If the install had to add something to the httpd.conf, then yes, apache would be restarted.

QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
Are programs like this included in CPanel's daily backup?


Nope.

QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
Where do you store rpm files after the install or do you just delete them?

The binaries have been extracted and added to the system, so you just delete them after installing.

QUOTE (dano2 @ Feb 17 2008, 05:13 AM) *
Does it matter who I execute it as, root or my webuser account, in order to be accessible to the webuser?


Not sure I can answer this one. It would depend what user you are executing it as, how you are executing it, the permissions on the binary itself, as well as the permissions on the two documents you are merging.
dano2
Wow, that was an awesome answer jjhurani. Thanks so much for taking the time to answer each one. That really helped.

Here's the results after running "rpm -ivh pdftk-1.12-0.i586.rpm".

QUOTE
error: Failed dependencies:
libgcj.so.4 is needed by pdftk-1.12-0.i586
libstdc++.so.5 is needed by pdftk-1.12-0.i586
libstdc++.so.5(CXXABI_1.2) is needed by pdftk-1.12-0.i586
libstdc++.so.5(GLIBCPP_3.2) is needed by pdftk-1.12-0.i586
libstdc++.so.5(GLIBCPP_3.2.2) is needed by pdftk-1.12-0.i586
Suggested resolutions:
/var/spool/up2datecompat-libstdc++-33-3.2.3-47.3.i386.rpm


I notice from my choice of RPMs here, http://www.accesspdf.com/article.php/20041130153545577, that I had grabbed the rpm for SUSE, but given my version below, I don't know which one (Mandrake, FreeBSD, Gentoo, Debian and a bunch of SuSEs) is the right one. Or am I just out of luck? Is it safe to just go ahead and run "rpm -ivh /var/spool/up2datecompat-libstdc++-33-3.2.3-47.3.i386.rpm" as the command suggested?

QUOTE
cat /proc/version
Linux version 2.6.9-42.0.10.ELsmp (brewbuilder@hs20-bc1-5.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Feb 16 17:17:21 EST 2007



Thanks,
Dan
WHM 11.15.0 cPanel 11.18.1-R20683
REDHAT Enterprise 4 i686 on standard - WHM X v3.1.0
James Jhurani
try "up2date libstdc++ libgcj compat-libstdc++* "

That should handle the dependencies, but I would advise against installing pdftk for suse on an RHEL3 server.

Instead grab the RHEL3 rpm from http://rpm.pbone.net/, click advanced search, and check the box that says Redhat EL 3, and search for pdftk.
dano2
Ok, I ran the update for the dependencies. Grabbed the pdftk from pbone for my environment. Getting the following.

QUOTE
rpm -ivh pdftk-1.12-1.el3.rf.i386.rpm
warning: pdftk-1.12-1.el3.rf.i386.rpm: V3 DSA signature: NOKEY, key ID blah
error: Failed dependencies:
libgcj.so.3 is needed by pdftk-1.12-1.el3.rf.i386


So, I took the same route looking up libgcj.so.3 at pbone for EL 3 and ran the following:

QUOTE
root@rose [~]# rpm -ivh libgcj-3.2.3-58.i386.rpm
Preparing... ########################################### [100%]
package libgcj-3.4.6-9 (which is newer than libgcj-3.2.3-58) is already installed
file /usr/bin/gij from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/bin/grepjar from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/bin/grmic from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/bin/grmiregistry from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/bin/jv-convert from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/info/fastjar.info.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/man/man1/gij.1.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/man/man1/grepjar.1.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/man/man1/grmic.1.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/man/man1/grmiregistry.1.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9
file /usr/share/man/man1/jv-convert.1.gz from install of libgcj-3.2.3-58 conflicts with file from package libgcj-3.4.6-9


"package libgcj-3.4.6-9 (which is newer than libgcj-3.2.3-58) is already installed"

Is this a common occurence that a program will only work with an older version of a dependency and not the newer one? I've researched for a solution and am at a total loss. I assume it wouldn't be smart to try to force an install of an older version. Any suggestions?

Thanks,
Dan
dano2
Anyone? Is there a known work-around for this kind of situation or is it a common occurence for Linux admins to just have to give up on installing programs because the library upgrades they depend on contain no backward compatibility? I appreciate the help I've been given here so far, but I'm wondering if anyone can suggest a good forum more tailored to this either on this site or somewhere else.
geomarcomputers
QUOTE (dano2 @ Feb 19 2008, 06:56 PM) *
Anyone? Is there a known work-around for this kind of situation or is it a common occurence for Linux admins to just have to give up on installing programs because the library upgrades they depend on contain no backward compatibility? I appreciate the help I've been given here so far, but I'm wondering if anyone can suggest a good forum more tailored to this either on this site or somewhere else.


I had the same need.

I checked the version of my OS this way:
# cat /proc/version
Linux version 2.6.9-67.0.7.ELsmp (brewbuilder@hs20-bc2-2.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-9)) #1 SMP Wed Feb 27 04:48:20 EST 2008
From that I figured I had Entreprise Linux 4 (not sure how)
So I used the EL4 RPM on that website: http://dag.wieers.com/rpm/packages/pdftk/ with
#wget http://dag.wieers.com/rpm/packages/pdftk/p...el4.rf.i386.rpm
and
#rpm -ivh pdftk-1.12-1.el4.rf.i386.rpm
It worked for me. May be you also have el4 not 3, and need to use the same version I used ?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.