1829576 Members
2292 Online
109992 Solutions
New Discussion

Squid installation

 
Aljosa_1
Advisor

Squid installation

Hi,

I'm trying to install squid on my hpux 11.00 server. I run configure and everything is ok. But when I run #make all I get some errors and installation fails.
#make all
No suffix list.
Making all in lib
rm -f libmiscutil.a
ar cru libmiscutil.a Array.o base64.o getfullhostname.o hash.o heap.o
html_quote.o iso3307.o md5.o radix.o rfc1035.o rfc1123.o rfc1738.o rfc2617.o s
afe_inet_addr.o splay.o Stack.o stub_memaccount.o util.o uudecode.o # ../incl
ude/version.h should be a dependency
: libmiscutil.a
rm -f libntlmauth.a
ar cru libntlmauth.a ntlmauth.o INCLUDES = -I../include -I../include
ar: No such file or directory
ar: could not open INCLUDES
ar: No such file or directory
ar: could not open =
ar: No such file or directory
ar: could not open -I../include
ar: No such file or directory
ar: could not open -I../include
*** Error exit code 4

Stop.
*** Error exit code 1

7 REPLIES 7
VEL_1
Valued Contributor

Re: Squid installation

Which compiler you are using?
Have you modifiy any Makefile related to libntlmauth.a library ?

Its good to use Gnu gcc & gmake to compile Squid.
Aljosa_1
Advisor

Re: Squid installation

Hi,

I install gmake and now is better but I still have one problem. I have also some other product installed on my server that has install file. After I run ./configure I check Makefile and saw that INSTALL variable is set to /opt/product/install.
I run gmake all and it works but when I run gmake install if fails with /opt/product/install -c .... error.

How could I change INSTALL value? There are too many Makefile files to change them manually. Is there a switch, which should be used when starting, configuring command?

Aljosa
VEL_1
Valued Contributor

Re: Squid installation



Please give the error messages you got?
Andrew Cowan
Honored Contributor

Re: Squid installation

You should be able to either echo $VAR on the command line, and then change it accordingly, or add a command line argument(s) to configure or make.

Check your $PATH and $LIBPATH variables.

Another option is to copy, or make a temporary link from an OS file it can't find to the current directory.
Aljosa_1
Advisor

Re: Squid installation

Hi

here are errors when I run gmake install

...

/bin/sh ..nstall: The -c, -f, -n options each require a directory following!
/usr/sbin/install -c -m 644 mime.conf.default /usr/local/squid/etc/mime.conf.de
/bin/sh ../cfgaux/mkinstalldirs /usr/local/squid/bin
/usr/sbin/install -c squidclient /usr/local/squid/bin/squidclient
cp:squidclient/: Invalid argument
/bin/sh ../cfgaux/mkinstalldirs /usr/local/squid/libexec
/usr/sbin/install -c unlinkd /usr/local/squid/libexec/unlinkd
cp:unlinkd/: Invalid argument
/usr/sbin/install -c cachemgr.cgi /usr/local/squid/libexec/cachemgr.cgi
cp:cachemgr.cgi/: Invalid argument
/bin/sh ../cfgaux/mkinstalldirs /usr/local/squid/sbin
/usr/sbin/install -c squid /usr/local/squid/sbin/squid
cp:squid/: Invalid argument
/bin/sh ../cfgaux/mkinstalldirs /usr/local/squid/etc
/usr/sbin/install -c -m 644 squid.conf.default /usr/local/squid/etc/squid.conf.
default
install: The -c, -f, -n options each require a directory following!
/usr/sbin/install -c -m 644 mime.conf.default /usr/local/squid/etc/mime.conf.de
fault
install: The -c, -f, -n options each require a directory following!
gmake[3]: *** [install-sysconfDATA] Error 2
gmake[3]: Leaving directory `/tmp/squid-2.5.STABLE8/src'
gmake[2]: *** [install-am] Error 2
gmake[2]: Leaving directory `/tmp/squid-2.5.STABLE8/src'
gmake[1]: *** [install-recursive] Error 1


Aljosa
Andrew Cowan
Honored Contributor

Re: Squid installation

These looks like the make file, or the configure script is either expecting arguments to be passed at run time, or for system environment variables e.g $LIBPATH to be set, and they are set to NUL/unset.

Have you run configure with any arguments? Take a look at the README, and INSTALL files just in case there are some special things you have to do for HP-UX. If so, this is quite a common problem and stems from the fact that the script cannot correctly determine your machine type.
Aljosa_1
Advisor

Re: Squid installation

I export INSTALL variable

#export INSTALL="/tmp/squid.../install-sh -c"

and #gmake install works.

Aljosa