LinuxQuestions.org
Help answer threads with 0 replies.
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 06-04-2002, 04:43 PM   #1
Annapanna
LQ Newbie
 
Registered: Jan 2002
Location: Basel, Switzerland
Distribution: Mandrake 8.1
Posts: 9

Rep: Reputation: 0
Unhappy Please help - Gimp RPM installation and general questions


Hi,

I have Mandrake 8.2 and I would like to install The Gimp. I downloaded the RPM
file, called gimp-1.2.3-5.i386.rpm (is it ok? there were so many...)and tried to install it just by clicking on it (I use KDE) .The installation program starts, then it stops and it tells me that it needs a file called libpng.so.2.
I tried to look for it but I couldn't find it....also, I don't really understand how this all works:
1. Do I have to look for RPMs that are specifically made for my distribution, or would
for example an RPM for RedHat also work?

2. Why don't they give you all the files you need in one package, like in windows?
There must be a point I am missing. What's the advantage? It all seems too complicated.

Please help, a link to some reading material on the subject would also be really good

Thanks!

Anna
 
Old 06-04-2002, 04:50 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
you should generally use rpms made for mandrake.. but then again Mandrake normally has the newest rpms, and precompiled for a higher architecture, so that shouldn't ever be an issue.

libpng.so.2 comes from the libpng package, which you should have on your distro cd's.... you have already got gimp on those cd's as well tho... why not just use the one you already have?
 
Old 06-04-2002, 05:11 PM   #3
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Hello, Anna!

You are simply missing some libraries (the equivalent of DLL files on Windoze) that the GIMP needs. The best way to get RPMs (apart from looking for them on your Mandrake CDs), is by using www.rpmfind.net, it has links to tons of RPMs for many distributions. You can search for "libpng" there, and you'll get a ton of hits with direct download links.

If RpmFind.Net seems a bit confusing to you, let me give you a short crash course on how to use it effectively:
  1. Go to www.rpmfind.net and type in "libpng" in the search field (no quotes).
  2. You should get over a hundred hits for libpng. Try narrowing down the list a bit... Type "mandrake" in the system field, and "i386" in the arch field, and click "Search" again.
  3. You should now only get RPM files for the Mandrake distribution, and only packages that are in binary form (i.e. NOT source code packages, which end in "src.rpm"... Binary packages for PC-compatibles end with "i386.rpm". The i386 stands for Intel 386 compatible. You could get i686 as well, which is for Intel Pentium II CPUs and higher, but it doesn't really make a big difference, i386 should be fine.)
  4. These instructions produced only one hit for me, with the libpng version 1.0.8 (the current being 1.2.3), so in this case, you may want to download a file from another distribution (such as RedHat 7.x). When downloading RPMs of other distros, the rule of thumb is to just make sure your distros are similar enough (see last paragraph).
Technically, it doesn't really matter if you download an RPM that was customly made for your distribution (Mandrake 8.1?) or not. RedHat is quite close to Mandrake, and RedHat 7.x RPMs should be just fine. However, if you can get an RPM for your distribution, then get it instead of a "foreign" one. The reason is that different distributions sometimes use different paths to store various files. For example, RedHat (and Mandrake too, I think)stores program files in /usr/bin, and Caldera OpenLinux 2.4 installs them in /opt/bin (I think... it's been a while since I used that distribution).
 
Old 06-04-2002, 05:23 PM   #4
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
Oh sorry, forgot to answer your last question, got a bit carried away with the rpmfind.net instructions. :P

The most obvious (to me) advantage with making separate packages for each library is that end users don't have to download the library over and over again with each program they download... Let's say you installed two programs on your Windoze computer that both use the file MSVCRT.DLL. The installers for both of these programs had that file (and I suspect many others) copied to your hard drive twice, in effect, which was unnecessary.

The second reason has to do with the closed-source, proprietary nature of Windoze. For example, when using Visual Basic to create a program for Windoze, developers have to include a whole bunch of DLL files with their programs. Micro$oft only lets developers with a valid Visual Basic license distribute these DLL files with their programs, and as a result these DLL files have to be included with every Visual Basic program you download, because they are not available separately.

With Linux/BSD, since most libraries are Open Source and can be freely redistributed, this is not a problem, so they are shipped separately from the programs that need them.

What would really be nice, though, is that if RPM would have the ability to fetch the packages it needs automatically for you off the Net. Hmmm... I wonder if someone already implemented that?
 
Old 06-05-2002, 02:55 PM   #5
Annapanna
LQ Newbie
 
Registered: Jan 2002
Location: Basel, Switzerland
Distribution: Mandrake 8.1
Posts: 9

Original Poster
Rep: Reputation: 0
Smile

Thanks!

Things are a lot clearer now.

On my Mandrake CD I found a file called libpng3-1.2.1-6mdk.i586.rpm. It was already installed, so I downloaded the GIMP file for i586 and it installed without problems. Maybe my mistake was that I was trying to install the program for i386 while I had the i586 libraries...

I am still wondering though how to decipher those RPM file names, what do those numbers stand for?

Thanks again !

Anna
 
Old 06-05-2002, 03:12 PM   #6
Dutch3
Member
 
Registered: Feb 2002
Location: UK
Distribution: Mandriva
Posts: 179

Rep: Reputation: 30
Just a quick tip Anna, it saves time to just double check the distro CDs for the programs you would like to install - they'll be the easiest (and usually best) versions to install and Mdk supplies loads .

The rpm names.....

libpng3 (obviously ) - and the series of numbers are just the version numbers - the higher > the most recent, as in this case 1.2.1-6 in a mandrake package.

There may be a number of versions for the libpng3 file but each higher one is usually a bugfix release.


Dutch

Last edited by Dutch3; 06-05-2002 at 03:13 PM.
 
  


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
Gimp 2.0.1 any rpm barrys Mandriva 19 08-12-2004 11:20 AM
Gimp 2 rpm and Mandrake 10.0 fabre Linux - Software 2 08-04-2004 10:53 AM
Few installation questions (RPM, Java, Webcam)... sbogus Linux - Newbie 11 06-11-2004 05:51 AM
RPM target installation questions (kernel). Thetargos Fedora 11 03-16-2004 02:46 PM
General questions on Mandrake 8.1 installation Annapanna Linux - Newbie 3 01-07-2002 05:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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