LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-21-2013, 07:14 PM   #1
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Rep: Reputation: Disabled
libpng install


I know this is noob question. sorry, new to slack.

I'm trying to install libpng from here

http://slackbuilds.org/mirror/slackw...urce/l/libpng/

No problems on the build but subsequent builds of software cannot locate libpng.
It seems like there are less files here than typical slack builds. Is there something required to handle the installation?
 
Old 03-22-2013, 03:06 AM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,294

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
Why would you want to make yourself a libpng package, as it is included in a full Slackware installation?

If you didn't make a full installation or removed the package afterwards for some reason, you can still (re)install it afterwards, see here.

If you have a DVD at hand,"installpkg" or "pkgtool" can be used. "slackpkg" can do the same thing and also download the package from a (possibly remote) server.

As a reminder, it is highly recommended that Slackware newcomers make a full installation to avoid this kind of issue.
 
1 members found this post helpful.
Old 03-22-2013, 10:53 AM   #3
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Original Poster
Rep: Reputation: Disabled
Code:
Why would you want to make yourself a libpng package, as it is included in a full Slackware installation?
Which package was it included in? I only left out the games and wm's.

Code:
As a reminder, it is highly recommended that Slackware newcomers make a full installation to avoid this kind of issue.
No disrespect, but if I wanted a system full of bloat and redundant, un-optimized applications which I have no intention of using, I could have stopped at Ubuntu.

I have a lot to learn about linux, but so far everything I have learned has been from tinkering with things which I don't like as opposed to accepting them as is. That is the reason I'm trying slack.


Now,as for my original question, Is there something missing from that slackbuild which would regulate the actual installation? I'm still trying to figure out the components of a properly designed slackbuild.
 
Old 03-22-2013, 11:07 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,737

Rep: Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549Reputation: 2549
Quote:
Which package was it included in ?
The package name is libpng : slackware/l/libpng-1.4.12-i486-1.txz
( Like it is in all other Linux OS : libpng* .)
ftp://ftp.slackware.org.uk/slackware...0/slackware/l/
> ftp://ftp.slackware.org.uk/slackware....12-i486-1.txz
 
Old 03-22-2013, 01:54 PM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,294

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
Quote:
Originally Posted by mreff555 View Post
I only left out the games and wm's.
Obviously you left out other packages. As knudfi pointed out , this package is included in the L series. wm'w are in the XAP series and games in the Y one.

Quote:
Originally Posted by mreff555 View Post
No disrespect, but if I wanted a system full of bloat and redundant, un-optimized applications which I have no intention of using, I could have stopped at Ubuntu.
No problem, but then just remember that in Slackware there is only one dependencies resolver: the System Administrator, in other words You. So I'd suggest that you learn to do that in a Slackware context. You'll find information @ docs.slackware.com, if that's not enough feel free to request here what you'd miss there.

Quote:
Originally Posted by mreff555 View Post
Is there something missing from that slackbuild which would regulate the actual installation?
I don't think so. I never ever found something missing from a genuine SlackBuild (genuine="included in Slackware"), provided you use it the proper way:
(1) inside its own environment
(2) running it as root (su -)
(3) inside a full Slackware installation.
(4) you don't forget to install it once it is built (it happened to me more than once, alas...)
Let's take the example you just gave us, I'd do it this way:
Code:
su -
cd <where you want to download the needed files>
lftp -c "open http://slackbuilds.org/mirror/slackware/slackware-14.0/source/l ; mirror libpng"
cd libpng
chmod +x libpng.SlackBuild # if not executable already
./libpng.SlackBuild # Then when it's finished:
installpkg /tmp/libpng-1.4.12-i486-1.txz
FYI I did exactly that before posting and it worked.

You can check that the package be actually installed running:
Code:
ls -l /var/log/packages/libpng*
Again if you didn't make a full Slackware installation (condition 3 above), the build *could* fail though.

Quote:
Originally Posted by mreff555 View Post
I'm still trying to figure out the components of a properly designed slackbuild.
http://www.slackbuilds.org/faq/#writing

Last edited by Didier Spaier; 03-22-2013 at 02:49 PM.
 
Old 03-22-2013, 02:51 PM   #6
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Original Poster
Rep: Reputation: Disabled
Code:
Obviously you left out other packages. As knudfi pointed out , this package is included in the L series. wm'w are in the XAP series and games int the Y one.
Strange. I was sure I included L. Oh well, I don't mind a bit of extra work as long as I can get the libraries to build.

Code:
No problem, but then just remember that in Slackware there is only one dependencies resolver: the System Administrator, in other words You. So I'd suggest that you learn to do that in a Slackware context. You'll find information @ docs.slackware.com, if that's not enough feel free to request here what you'd miss there.
That's exactly why I switched to slack. I'm pretty sure the best way to learn dependencies is to be forced to learn them. This is one of the reasons why I wanted a minimal build. I wasn't terribly concerned if it took me a week or two.


Thanks for your example. For the most part that's how I was doing it, except I was downloading the files one by one. I'll try lftp and see if that makes a difference.

Regardless of whether L was installed or not I don't think there was a dependency problem. There were no errors in the compile phase, and after the install I double checked to make sure the libraries were there.
 
Old 03-22-2013, 03:21 PM   #7
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,294

Rep: Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063Reputation: 1063
I should have added that whenever you install a new library it's a good habit tot:
(1) if it was installed in a "non trusted" (i.e., neither /lib nor /usr/lib) directory, include the path to that directory in /etc/ld.so.conf (if not already there, of course)
(2) run 'ldconfig' to regenerate the links & cache.

In the case of libpng,
Code:
less /var/log/packages/libpng-1.4.12-i486-1
shows that the path is /usr/lib, so only step (2) is needed.

This *could* be done by an installation script but it never hurts to do it yourself, just in case.

Last edited by Didier Spaier; 03-22-2013 at 03:22 PM.
 
Old 03-25-2013, 08:21 AM   #8
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Original Poster
Rep: Reputation: Disabled
Tried all of the above with no luck. Installed the L package. No luck. Re-installed the entire system. Fixed it.
I have to say I'm really liking Slack except for the fact that I have a bunch of junk which I'll never use on here.
 
Old 03-25-2013, 09:06 AM   #9
titopoquito
Senior Member
 
Registered: Jul 2004
Location: Ruhr Area, Germany
Distribution: Slackware64 14.0
Posts: 1,517

Rep: Reputation: 90
Quote:
Originally Posted by mreff555 View Post
Tried all of the above with no luck. Installed the L package. No luck. Re-installed the entire system. Fixed it.
I have to say I'm really liking Slack except for the fact that I have a bunch of junk which I'll never use on here.
If you want to slim down your install have a look at tagfiles - this way you can create your personal install/do not install-list. Problem is you have to update the tagfiles for each new version, as new packages get added (like the recent splitting of kdemultimedia package).
To get an idea take your setup disc or setup folder and have a look at the files called "tagfile" in each of the package series' folder ("/path/to/slackware/disc/slackware64/xap/tagfile" and so on for each folder).
I used this some years before, but was to lazy to update my tagfiles for each release. Since then I happily accept the "junk" and spend the time I've got with my wife
 
Old 03-25-2013, 09:11 AM   #10
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by titopoquito View Post
I used this some years before, but was to lazy to update my tagfiles for each release. Since then I happily accept the "junk" and spend the time I've got with my wife
I'm sure my wife would prefer if I took your advice rather than tinkering with linux all night.
 
Old 03-25-2013, 09:50 AM   #11
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,592
Blog Entries: 2

Rep: Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046Reputation: 4046
If you want to know more about the dependencies of the default Slackware packages I have created a whole bunch of textfiles (although they have .txz file-extensions) with dependency information using the Slackdeps programs. You can download the information here: https://dl.dropbox.com/u/29227182/Sl...dencies.tar.xz
 
Old 03-25-2013, 10:13 AM   #12
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.0
Posts: 565
Blog Entries: 2

Rep: Reputation: 75
Quote:
Originally Posted by mreff555 View Post
I'm sure my wife would prefer if I took your advice rather than tinkering with linux all night.
A full installation minus the kde/kdei sets of packages seems to be streamlined enough for me.

You could make do with a bare bones installation but every time you installed some new software, you would find yourself searching for missing packages in the installation disk.
 
Old 03-25-2013, 11:03 AM   #13
mreff555
Member
 
Registered: Sep 2011
Location: Philly
Distribution: Gentoo
Posts: 444

Original Poster
Rep: Reputation: Disabled
Been there before. I'm actually giving KDE a try. I've never actually used it and kinda assumed I wouldn't like it because I hate gnome. Typically I prefer openbox.
Despite the fact that it takes a while to load and unload it doesn't seem as bad as I thought. The problem with openbox, is that I have so much fun customizing it, that I never actually finish and spend all my time tinkering with it.
 
  


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
[SOLVED] libpng error: Incompatible libpng version in application and library Stragonian Slackware 10 11-18-2011 11:06 AM
[SOLVED] Build problem hard to solve : zeroradiant and libpng 1.4 (libpng compatibility pb) naaman Linux - Software 1 01-01-2011 04:03 AM
error while loading shared libraries: libpng.so.2: [I reinstalled libPNG!] Shioni Linux - Software 1 09-09-2006 07:21 PM
libpng and libpng-devel missing in mplayer configure mmarkvillanueva Linux - Software 2 11-29-2005 10:40 PM
MPlayer install problems with libpng & libpng-devel Trey2501 Linux - Newbie 18 03-05-2004 11:24 PM


All times are GMT -5. The time now is 07:04 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration