LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   squid + sarg problem (https://www.linuxquestions.org/questions/slackware-14/squid-sarg-problem-4175528635/)

cent4 12-18-2014 02:23 AM

squid + sarg problem
 
Hi my squid works good, but sarg not good.
When I start sarg: "sarg -x" I have 2 errors:
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

How to fix it?

StreamThreader 12-18-2014 08:07 AM

If you use txz/tgz package instead of itself compile, trying recompile this program on your PC (use slackbuild fo it).
This (sarg) program not compatible with library libpng which installed in you system.

cent4 12-18-2014 04:13 PM

It's not work

bassmadrigal 12-18-2014 04:30 PM

You didn't answer his question. He also informed you why it didn't work. The libpng that sarg was compiled with (1.4.5) is newer than the version on your system (1.2.44) and because of that the program won't work. You have two options. One, compile sarg on your system so it links to the correct version of libpng, or upgrade to a newer libpng (not recommended as there are probably a lot of programs on the system compiled against the installed version.

What version of Slackware do you have? Where did you get your sarg package?

A quick google search turned up the following site. Just download all those files in a folder, download the sarg source from sourceforge in the same folder, then as root, run sarg.Slackbuild. This should provide you with a package you can then install that won't cause you this error.

https://github.com/conraid/SlackBuilds/tree/master/sarg

cent4 12-18-2014 04:33 PM

Version of slackware is 13.37

cent4 12-19-2014 01:06 AM

I have error:
root@xxxxx:~/!install/sargcompile# sarg.Slackbuild
bash: sarg.Slackbuild: command not found

ponce 12-19-2014 01:15 AM

have a look at a generic guide on how to use SlackBuild scripts (hint: launch it as ./sarg.Slackbuild).

StreamThreader 12-19-2014 01:53 AM

Change permissions
Quote:

chmod 755 ./sarg.Slackbuild
or run
Quote:

bash ./sarg.Slackbuild

cent4 12-19-2014 04:23 AM

Hepl me ;-(:
root@xxx:~/!install/sargcompile# ./sarg.Salckbuild
bash: ./sarg.Salckbuild: No such file or directory
root@xxx:~/!install/sargcompile# bash ./sarg.Salckbuild
bash: ./sarg.Salckbuild: No such file or directory
root@xxx:~/!install/sargcompile#
In folder I have 4 files from:
https://github.com/conraid/SlackBuilds/tree/master/sarg

cent4 12-19-2014 06:39 AM

It,s ok I have sarg-2.0.5-i486-1jm.tgz
What now?

bassmadrigal 12-19-2014 06:59 AM

Seems like you figured out you typed it wrong from the last post ;) We all have done that at times, that's why I usually use tab completion. Also, to note, you can run the file using bash or sh without needing to change the permissions (I get lazy sometimes). You had that with your second entry, but the filename was spelled wrong.

As to installing the package, just run upgradepkg /location/to/sarg-2.0.5-i486-1jm.tgz. Most slackbuilds will store them in /tmp.

cent4 12-19-2014 07:06 AM

Error: there is no installed package named sarg-2.0.5-i486-1jm

bassmadrigal 12-19-2014 07:11 AM

Oh, sounds like you uninstalled the old one. You can run installpkg instead of upgradepkg (or run upgradepkg --install-new) followed by the location of the sarg package.

cent4 12-19-2014 07:19 AM

package instaled - error the same :-(:
When I start sarg: "sarg -x" I have 2 errors:
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

bassmadrigal 12-19-2014 07:37 AM

Are you sure you removed the old one? What is the output of which sarg?


All times are GMT -5. The time now is 06:19 AM.