LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-23-2011, 01:13 AM   #1
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Rep: Reputation: 0
CentOS 5 squid: error while loading shared libraries


Hi,

I installed squid on the CentOS 5 server. When I try to start squid I am receiving following error:

# service squid start
init_cache_dir /var/spool/squid... Starting squid: [FAILED]

The logs indicate the following:

$ sudo tail /var/log/squid/squid.out
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied
squid: error while loading shared libraries: libcrypt.so.1: cannot open shared object file: Permission denied

Although, all the libraries which are shown as missing are present, but still I am seeing the following.

$ ldd /usr/sbin/squid
linux-vdso.so.1 => (0x00007fffb95ff000)
libcrypt.so.1 => not found
libssl.so.6 => not found
libcrypto.so.6 => not found
libdl.so.2 => not found
libz.so.1 => not found
librt.so.1 => not found
libpthread.so.0 => not found
libm.so.6 => not found
libnsl.so.1 => not found
libc.so.6 => not found

I have tried setting the environment variable LD_LIBRARY_PATH

$ echo $LD_LIBRARY_PATH
/lib64:/usr/lib64:/lib:/usr/lib

But still no use.

Any help/pointers will be appreciated.
 
Old 01-23-2011, 03:46 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
just HOW did you install squid ???
it is in the base repo

Code:
$ yum search squid
Loaded plugins: downloadonly, fastestmirror, priorities
rpmforge                                                            10152/10152
rpmforge-extras                                                         119/119
================================ Matched: squid ================================
squidguard-blacklists.noarch : Regularly updated blacklists for use with
                             : squidguard
squid.x86_64 : The Squid proxy caching server.
awstats.noarch : Powerful and fullfeatured server logfile analyzer
calamaris.noarch : Squid native log format (NLF) analyzer and report generator
sarg.x86_64 : Squid usage report generator per user/ip/name
squidguard.x86_64 : Combined filter, redirector and access controller plugin for
                  : squid
tinyproxy.x86_64 : Lightweight, non-caching, optionally anonymizing HTTP proxy


~]$ yum info squid
Loaded plugins: downloadonly, fastestmirror, priorities
Available Packages
Name       : squid
Arch       : x86_64
Epoch      : 7
Version    : 2.6.STABLE21
Release    : 6.el5
Size       : 1.3 M
Repo       : base
Summary    : The Squid proxy caching server.
License    : GPL
Description: Squid is a high-performance proxy caching server for Web clients,
           : supporting FTP, gopher, and HTTP data objects. Unlike traditional
           : caching software, Squid handles all requests in a single,
           : non-blocking, I/O-driven process. Squid keeps meta data and
           : especially hot objects cached in RAM, caches DNS lookups, supports
           : non-blocking DNS lookups, and implements negative caching of failed
           : requests.
           : 
           : Squid consists of a main server program squid, a Domain Name System
           : lookup program (dnsserver), a program for retrieving FTP data
           : (ftpget), and some management and client tools.
and how did you set up the service ?
for gnome - if installed
Code:
su -
system-config-services
and but a check in it
 
Old 01-24-2011, 09:30 PM   #3
ajitabhpandey
LQ Newbie
 
Registered: May 2006
Location: India
Distribution: Slackware, Debian, RedHat, CentOS, Ubuntu, Fedora
Posts: 17

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
just HOW did you install squid ??

and how did you set up the service ?
for gnome - if installed
Yes I installed squid from base, a simple

Code:
# yum install squid
I configured the /etc/squid/squid.conf manually. No GUI on the server.

SELinux is enabled, but I have put it into permissive mode, which still gives me the same problem, so it is not an issue.
 
  


Reply

Tags
centos5, squid



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
error while loading shared libraries: libgda-4.0.so.4: cannot open shared object file mahesh1234 Linux - Newbie 2 10-22-2013 11:06 PM
error while loading shared libraries: libtermcap.so.2: cannot open shared object file astroboy2000ir Linux - Software 3 12-07-2010 11:16 PM
CentOS 5.3 (64bit) - error while loading shared libraries: librpmdb-4.4.so Orayi Red Hat 2 09-24-2009 08:39 AM
Informix server on CentOS 5 error while loading shared libraries: libstdc++-libc6.2-2 ytd Linux - General 1 08-09-2009 02:14 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:23 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