PDA

View Full Version : Unable to install Resin 4.0.4 on UNIX


despondent
05-14-2010, 08:34 PM
Hello,
I'm new on the forum and new to Resin.
I failed to install Resin 4.0.4 on SunOS 5.9
I was able to compile withour errors (make works).
I failed to install after that (make install does not work).
I got the following error message.
cp: cannot access bin/*
*** Error code 2
make: Fatal error: Command failed for target `install'
Also I was not able to find bin directory in source directory. Should make command create "bin" directory?
I use resin-4.0.4.tar to install and instruction from http://caucho.com/resin-4.0/admin/starting-resin-install.xtp#Installing

Thank you.

emil
05-14-2010, 11:06 PM
Hi,

Can you post the full output from "make install"? There should be a bin/ directory in the resin-4.0.4 directory; it's part of the tar.gz, so it shouldn't have to be generated.

Thanks,
Emil

despondent
05-18-2010, 04:10 AM
Hi Emil,

We downloaded resin-4.0.4.zip file. Should zip file be different than tar.gz?

$ make install
if test /usr/local/resin != `pwd`; then \
mkdir -p /usr/local/resin/licenses; \
mkdir -p /usr/local/resin/lib; \
mkdir -p /usr/local/resin/libexec; \
cp lib/*.jar /usr/local/resin/lib; \
mkdir -p /usr/local/resin/bin; \
cp bin/* /usr/local/resin/bin; \
fi; \
if test /var/www != `pwd`; then \
mkdir -p /var/www/webapps; \
cp -r webapps/* /var/www/webapps; \
mkdir -p /var/www/doc; \
cp -r doc/* /var/www/doc; \
mkdir -p /var/log/resin; \
fi; \
if test /etc/resin != `pwd`/conf; then \
mkdir -p /etc/resin; \
cp conf/app-default.xml /etc/resin/app-default.xml; \
cp conf/resin.xml /etc/resin/resin.xml; \
fi; \
if test -n "/etc/init.d/resin"; then \
cp init.d/resin /etc/init.d/resin; \
chmod +x /etc/init.d/resin; \
fi; \
(cd modules/c/src; make install)
cp: cannot access bin/*
*** Error code 2
make: Fatal error: Command failed for target `install'
$

I believe resin-4.0.4.zip does not have bin directory in it.

$ ls -l *.zip
-rw-r--r-- 1 ias staff 19897966 May 13 07:31 resin-4.0.4.zip
$ unzip -l resin-4.0.4.zip | grep '/bin/'
$

We have found that 4.0.5 has bin directory. We decided to go with 4.0.5

Thank you

emil
05-18-2010, 09:28 PM
Hi,

Ah, you just reminded me that we took out the bin/ directory in 4.0.4 and there were complaints, so we readded it. Glad you got 4.0.5 working.

Thanks,
Emil

despondent
05-20-2010, 05:49 AM
Hi Emil,
One more question. I was able to successfully install Resin-PRO-4.0.5
I got one warning:
WARNING: Unable to install /etc/init.d/resin
Destination is not writable. Usually, only root has permissions to install this file.
This file is not required, but is used to start Resin at boot time.

Then I copied file init.d/resin from .zip file to /etc/init.d directory and tried to start Resin under superuser ID.
I got the following message:
# ./resin start
-n Starting resin:
failed!
#
Do you know if log file exists to check for errors or I have to work with file /etc/init.d/resin to see what in that file causes the failure?

Thank you.

emil
05-21-2010, 08:28 PM
Hi,

With 4.0.5 you'll have to work with the resin shell script to get the output. We're updating Resin 4.0.7's script to behave more nicely wrt logging. The script from 4.0.6 and earlier assumes certain functions exist in the init.d environment that are not universal. We're factoring those out if they're not available for the future versions.

Best,
Emil