LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-18-2014, 02:23 AM   #1
cent4
Member
 
Registered: Mar 2013
Posts: 38

Rep: Reputation: Disabled
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?
 
Old 12-18-2014, 08:07 AM   #2
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 152

Rep: Reputation: 64
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.
 
Old 12-18-2014, 04:13 PM   #3
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
It's not work
 
Old 12-18-2014, 04:30 PM   #4
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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
 
1 members found this post helpful.
Old 12-18-2014, 04:33 PM   #5
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
Version of slackware is 13.37
 
Old 12-19-2014, 01:06 AM   #6
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
I have error:
root@xxxxx:~/!install/sargcompile# sarg.Slackbuild
bash: sarg.Slackbuild: command not found
 
Old 12-19-2014, 01:15 AM   #7
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,111

Rep: Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183Reputation: 4183
have a look at a generic guide on how to use SlackBuild scripts (hint: launch it as ./sarg.Slackbuild).
 
Old 12-19-2014, 01:53 AM   #8
StreamThreader
Member
 
Registered: Mar 2012
Location: Ukraine/Odesa
Distribution: Slackware
Posts: 152

Rep: Reputation: 64
Change permissions
Quote:
chmod 755 ./sarg.Slackbuild
or run
Quote:
bash ./sarg.Slackbuild
 
Old 12-19-2014, 04:23 AM   #9
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-19-2014, 06:39 AM   #10
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
It,s ok I have sarg-2.0.5-i486-1jm.tgz
What now?
 
Old 12-19-2014, 06:59 AM   #11
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 12-19-2014, 07:06 AM   #12
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
Error: there is no installed package named sarg-2.0.5-i486-1jm
 
Old 12-19-2014, 07:11 AM   #13
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
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.
 
Old 12-19-2014, 07:19 AM   #14
cent4
Member
 
Registered: Mar 2013
Posts: 38

Original Poster
Rep: Reputation: Disabled
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
 
Old 12-19-2014, 07:37 AM   #15
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 8,792

Rep: Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656Reputation: 6656
Are you sure you removed the old one? What is the output of which sarg?
 
  


Reply



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
Sarg on squid ekcr Linux - Newbie 1 11-15-2011 08:30 AM
Install Sarg to monitor Squid not success. Cannot see sarg.conf file !!! Help me. ducloiag Linux - Networking 2 11-30-2010 08:32 PM
Help with SARG + Squid wegadnie Linux - General 0 01-08-2009 12:28 AM
squid and sarg tenzan Linux - Networking 4 02-11-2006 01:25 AM
squid + sarg JJX Linux - Software 4 06-22-2005 06:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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
Open Source Consulting | Domain Registration