Cacti installation error
Sergey Matveychuk
sem at FreeBSD.org
Tue Jul 21 21:14:19 UTC 2009
Tom Evans пишет:
> On Tue, 2009-07-21 at 20:14 +0800, Romeo Paras wrote:
>> I already free some spaces and when I tried it again by running ' make
>> install clean' i received these errors;
>>
>>
>> cacti-0.8.7e depends on file: /usr/local/lib/php/20060613/session.so - found
>>
>> ===> cacti-0.8.7e depends on file: /usr/local/lib/php/20060613/sockets.so -
>> found
>> ===> cacti-0.8.7e depends on file: /usr/local/lib/php/20060613/snmp.so -
>> found
>> ===> cacti-0.8.7e depends on file: /usr/local/lib/php/20060613/xml.so -
>> found
>> ===> cacti-0.8.7e depends on shared library: mysqlclient.15 - found
>> cacti:*:107:
>> You already have a group "cacti", so I will use it.
>> pw: user 'cacti' already exists
>> Adding user "cacti" failed...
>> *** Error code 1
>>
>> stop at /usr/ports/net-mgmt/cacti
>>
>>
>> what will I do next? thanks
>
> Try freebsd-ports@, this doesn't seem to be related to X11 at all.
>
> The error message seems to be that it failed to add the user because it
> already exists - perhaps try removing the user and retrying the
> installation.
>
It should be happened really:
if ${PW} user show "${CACTIUSER}" 2>/dev/null; then
echo "You already have a user \"${CACTIUSER}\", so I
will use it
."
else
if ${PW} useradd ${CACTIUSER} -u ${UID} -g
${CACTIGROUP} -h - \
-d "/nonexistent" -s /sbin/nologin -c "Cacti
Sandbox"
then
echo "Added user \"${CACTIUSER}\"."
else
echo "Adding user \"${CACTIUSER}\" failed..."
exit 1
fi
fi
What FreeBSD version you use?
--
Dixi.
Sem.
More information about the freebsd-ports
mailing list