LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   libpng install (http://www.linuxquestions.org/questions/slackware-14/libpng-install-4175455068/)

mreff555 03-21-2013 07:14 PM

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?

Didier Spaier 03-22-2013 03:06 AM

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.

mreff555 03-22-2013 10:53 AM

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.

knudfl 03-22-2013 11:07 AM

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

Didier Spaier 03-22-2013 01:54 PM

Quote:

Originally Posted by mreff555 (Post 4916582)
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 (Post 4916582)
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 (Post 4916582)
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 (Post 4916582)
I'm still trying to figure out the components of a properly designed slackbuild.

http://www.slackbuilds.org/faq/#writing

mreff555 03-22-2013 02:51 PM

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.

Didier Spaier 03-22-2013 03:21 PM

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.

mreff555 03-25-2013 08:21 AM

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.

titopoquito 03-25-2013 09:06 AM

Quote:

Originally Posted by mreff555 (Post 4918336)
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 :)

mreff555 03-25-2013 09:11 AM

Quote:

Originally Posted by titopoquito (Post 4918360)
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.

TobiSGD 03-25-2013 09:50 AM

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

psionl0 03-25-2013 10:13 AM

Quote:

Originally Posted by mreff555 (Post 4918367)
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.

mreff555 03-25-2013 11:03 AM

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.


All times are GMT -5. The time now is 02:08 AM.