Помогите пожалуйста.
Делаю make и получаю вывод:
sles1:/home/distr/squidclamav-4.0 # make
make all-am
make[1]: Entering directory `/home/distr/squidclamav-4.0'
if gcc -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
main.c:66:23: error: curl/curl.h: No such file or directory
main.c:110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘main’:
main.c:192: error: ‘CURL_ERROR_SIZE’ undeclared (first use in this function)
main.c:192: error: (Each undeclared identifier is reported only once
main.c:192: error: for each function it appears in.)
main.c:276: error: ‘CURL_GLOBAL_ALL’ undeclared (first use in this function)
main.c:278: error: ‘eh’ undeclared (first use in this function)
main.c:288: error: ‘CURLOPT_HEADERFUNCTION’ undeclared (first use in this function)
main.c:290: error: ‘CURLOPT_WRITEFUNCTION’ undeclared (first use in this function)
main.c:292: error: ‘CURLOPT_ERRORBUFFER’ undeclared (first use in this function)
main.c:294: error: ‘CURLOPT_TIMEOUT’ undeclared (first use in this function)
main.c:296: error: ‘CURLOPT_NOSIGNAL’ undeclared (first use in this function)
main.c:298: error: ‘CURL_HTTP_VERSION_1_0’ undeclared (first use in this function)
main.c:303: error: ‘CURLOPT_FAILONERROR’ undeclared (first use in this function)
main.c:308: error: ‘CURLOPT_FOLLOWLOCATION’ undeclared (first use in this function)
main.c:310: error: ‘CURLOPT_MAXREDIRS’ undeclared (first use in this function)
main.c:313: error: ‘CURLOPT_USERAGENT’ undeclared (first use in this function)
main.c:315: warning: assignment makes pointer from integer without a cast
main.c:316: error: ‘CURLOPT_HTTPHEADER’ undeclared (first use in this function)
main.c:508: error: ‘CURLOPT_PROXY’ undeclared (first use in this function)
main.c:511: error: ‘CURLOPT_URL’ undeclared (first use in this function)
main.c:513: error: ‘CURLOPT_NOBODY’ undeclared (first use in this function)
main.c:547: error: ‘CURLINFO_CONTENT_LENGTH_DOWNLOAD’ undeclared (first use in this function)
main.c:548: error: ‘CURLE_OK’ undeclared (first use in this function)
main.c:564: error: ‘CURLINFO_CONTENT_TYPE’ undeclared (first use in this function)
main.c:690: error: ‘CURLOPT_HTTPGET’ undeclared (first use in this function)
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/home/distr/squidclamav-4.0'
make: *** [all] Error 2
Застрял на этом и никак не поборю.
Не проходит make
сори не тот вывод, make install не проходит
sles1:/home/distr/redirector-3.2.2 # make install
mkdir -p /usr/share/rejik3/tools
cp make-cache /usr/share/rejik3
cp redirector /usr/share/rejik3
cp redirector.conf.dist /usr/share/rejik3
echo "#!/bin/sh" > /usr/share/rejik3/tools/check-redirector
echo 'su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/share/rejik3/redirector /usr/share/rejik3/redirector.conf;"' >> /usr/share/rejik3/tools/check-redirector
chmod 755 /usr/share/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/share/rejik3/tools/set-permissions
echo 'chown -R squid :nogroup /usr/share/rejik3' >> /usr/share/rejik3/tools/set-permissions
chmod 755 /usr/share/rejik3/tools/set-permissions
cp tools/kill-cache /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/kill-cache
cp tools/benchmark /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/benchmark
cp tools/IN.gz /usr/share/rejik3/tools
chmod 644 /usr/share/rejik3/tools/IN.gz
chown -R squid :nogroup /usr/share/rejik3
chown: cannot access `:nogroup': No such file or directory
make: *** [install] Error 1
sles1:/home/distr/redirector-3.2.2 # make install
mkdir -p /usr/share/rejik3/tools
cp make-cache /usr/share/rejik3
cp redirector /usr/share/rejik3
cp redirector.conf.dist /usr/share/rejik3
echo "#!/bin/sh" > /usr/share/rejik3/tools/check-redirector
echo 'su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/share/rejik3/redirector /usr/share/rejik3/redirector.conf;"' >> /usr/share/rejik3/tools/check-redirector
chmod 755 /usr/share/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/share/rejik3/tools/set-permissions
echo 'chown -R squid :nogroup /usr/share/rejik3' >> /usr/share/rejik3/tools/set-permissions
chmod 755 /usr/share/rejik3/tools/set-permissions
cp tools/kill-cache /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/kill-cache
cp tools/benchmark /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/benchmark
cp tools/IN.gz /usr/share/rejik3/tools
chmod 644 /usr/share/rejik3/tools/IN.gz
chown -R squid :nogroup /usr/share/rejik3
chown: cannot access `:nogroup': No such file or directory
make: *** [install] Error 1
Прочтите "Как установить?" п.6 (http://rejik.ru/index210.html)
Не пойму под каким пользователем работает squid
вывод смущает
sles1:/etc/squid # ps aux | grep squid
root 11927 0.0 0.1 6024 896 ? Ss 16:31 0:00 /usr/sbin/squid -sYD
squid 11929 8.5 2.7 17972 14088 ? S 16:31 0:00 (squid) -sYD
squid 11930 0.0 0.0 1372 300 ? Ss 16:31 0:00 (unlinkd)
root 11941 0.0 0.1 1864 664 pts/0 S+ 16:31 0:00 grep squid
но логи создает пользователь squid и группа nogroup
вывод смущает
sles1:/etc/squid # ps aux | grep squid
root 11927 0.0 0.1 6024 896 ? Ss 16:31 0:00 /usr/sbin/squid -sYD
squid 11929 8.5 2.7 17972 14088 ? S 16:31 0:00 (squid) -sYD
squid 11930 0.0 0.0 1372 300 ? Ss 16:31 0:00 (unlinkd)
root 11941 0.0 0.1 1864 664 pts/0 S+ 16:31 0:00 grep squid
но логи создает пользователь squid и группа nogroup
Не помогает:
sles1:/home/distr/redirector-3.2.2 # make install
mkdir -p /usr/share/rejik3/tools
cp make-cache /usr/share/rejik3
cp redirector /usr/share/rejik3
cp redirector.conf.dist /usr/share/rejik3
echo "#!/bin/sh" > /usr/share/rejik3/tools/check-redirector
echo 'su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/share/rejik3/redirector /usr/share/rejik3/redirector.conf;"' >> /usr/share/rejik3/tools/check-redirector
chmod 755 /usr/share/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/share/rejik3/tools/set-permissions
echo 'chown -R squid :nogroup /usr/share/rejik3' >> /usr/share/rejik3/tools/set-permissions
chmod 755 /usr/share/rejik3/tools/set-permissions
cp tools/kill-cache /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/kill-cache
cp tools/benchmark /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/benchmark
cp tools/IN.gz /usr/share/rejik3/tools
chmod 644 /usr/share/rejik3/tools/IN.gz
chown -R squid :nogroup /usr/share/rejik3
chown: cannot access `:nogroup': No such file or directory
make: *** [install] Error 1
sles1:/home/distr/redirector-3.2.2 # make install
mkdir -p /usr/share/rejik3/tools
cp make-cache /usr/share/rejik3
cp redirector /usr/share/rejik3
cp redirector.conf.dist /usr/share/rejik3
echo "#!/bin/sh" > /usr/share/rejik3/tools/check-redirector
echo 'su squid -c "echo \"http://sex.ru 127.0.0.1/- - GET\" | /usr/share/rejik3/redirector /usr/share/rejik3/redirector.conf;"' >> /usr/share/rejik3/tools/check-redirector
chmod 755 /usr/share/rejik3/tools/check-redirector
echo "#!/bin/sh" > /usr/share/rejik3/tools/set-permissions
echo 'chown -R squid :nogroup /usr/share/rejik3' >> /usr/share/rejik3/tools/set-permissions
chmod 755 /usr/share/rejik3/tools/set-permissions
cp tools/kill-cache /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/kill-cache
cp tools/benchmark /usr/share/rejik3/tools
chmod 755 /usr/share/rejik3/tools/benchmark
cp tools/IN.gz /usr/share/rejik3/tools
chmod 644 /usr/share/rejik3/tools/IN.gz
chown -R squid :nogroup /usr/share/rejik3
chown: cannot access `:nogroup': No such file or directory
make: *** [install] Error 1