SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
su -
removepkg sarg
mkdir sarg
cd sarg
wget https://raw.githubusercontent.com/conraid/SlackBuilds/master/sarg/sarg.SlackBuild
wget https://raw.githubusercontent.com/conraid/SlackBuilds/master/sarg/doinst.sh
wget https://raw.githubusercontent.com/conraid/SlackBuilds/master/sarg/slack-desc
wget http://downloads.sourceforge.net/project/sarg/sarg/sarg-2.3.9/sarg-2.3.9.tar.gz
chmod +x sarg.Slackbuild
./sarg.Slackbuild
installpkg sarg-2.3.9-x86_64-1cf.txz ##or replace x86_64 with i686 if you're running 32bit Slackware
If you get any errors, paste them here. I was able to successfully compile the program, although, I'm waiting for squid to compile to make sure it works (when I try to open sarg, it complains that there's no squid logfile, but no errors about libpng )
Last edited by bassmadrigal; 12-21-2014 at 02:28 PM.
All ok about instalation but the same error:
root@server:~/sarg# sarg
Quote:
SARG: Records in file: 3536981, reading: 100.00%
libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.44
gd-png: fatal libpng error: Incompatible libpng version in application and library
Segmentation fault
That's weird, I don't have png.c on my system (14.1 64bit). Maybe it was included in previous versions of Slackware? Try running the following and paste the output so we can see where it is and what it was included in.
Code:
locate png.c
grep png.c /var/log/packages/*
If it comes from libpng, you can try reinstalling libpng. I don't know if you're running 32bit or 64bit, so I linked to both. Reinstall it using the command upgradepkg --reinstall $PACKAGENAME. Replace $PACKAGENAME with the package you downloaded.
If png.c comes from a different package, you can try and download that one and reinstall it.
So you have the 64bit version of Slack (I hope so, because that's what the rest of my commands are assuming)? Did you download the libpng I linked to eariler? If so, you'd need to either move it to your current directory or point upgradepkg to the location of the file. upgradepkg --reinstall /location/to/libpng-1.4.5-x86_64-1.txz (note, you need the .txz at the end of it).
But it looks like you might've tried downgrading your gd library, since 13.37 comes with 2.0.35 and your root directory shows 2.0.33. Try upgrading that to the correct 13.37 version (the --reinstall forces it to reinstall the program, even if the versions appear the same; --install-new will have it install the program if there isn't one currently installed).
root@server:~/!JACEK# upgradepkg --reinstall libpng-1.4.5-x86_64-1.txz
ok
root@server:/# upgradepkg --reinstall --install-new gd-2.0.35-x86_64-4.txz
Package gd-2.0.35-x86_64-4 upgraded with new package ./gd-2.0.35-x86_64-4.txz.
ok
root@server:/# sarg
Quote:
SARG: Records in file: 3536981, reading: 100.00%
libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.44
gd-png: fatal libpng error: Incompatible libpng version in application and library
Segmentation fault
I'm at a loss. Slackware 13.37 came with libpng 1.4.5, so I don't know why there'd be any claim of libpng 1.2.44. I'm guessing there's something screwed up with your install (maybe you manually installed something which overwrote important files). It might be worth backing up what's needed, and then wiping and installing Slackware 14.1.
SARG: Unknown option language Polish
SARG: Records in file: 3536981, reading: 100.00%
libpng warning: Application was compiled with png.h from libpng-1.4.5
libpng warning: Application is running with png.c from libpng-1.2.44
gd-png: fatal libpng error: Incompatible libpng version in application and library
Segmentation fault
;-( Meaby I have bad sarg.conf?
I don't know what to do, my boss will be not happy when I can't to do this ;-(
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.