| Author |
Message |
|
| Guest |
Posted: Sat Nov 04, 2006 12:35 pm |
|
|
|
Guest
|
Hello,
Mostly I lurk on this list and try out Yaws now and then and enjoy
tinkering with it. This time I'm trying to use Yariv's fancy new web
framework and so I'm upgrading my installs. I took Erlang to R11B-1 and
that worked just fine. My hardware is an Apple iBook (with a G3 chip)
running OS X 10.3.9.
Then, with that in place, I download Yaws 1.65 and it successfully
configures and makes. When I try to do a make install, I get the
following error:
/Library/StartupItems/Yaws exists but is not a directory, bailing out
...
and then it stops. I checked immediately after the script failed and
/Library/StartupItems/Yaws did not exist, as either a directory or a
file.
I can do a make local_install, but I thought I'd better report the
problem. The entire output of the script is at the end of this email.
Thanks.
Simon
killigrew:~ simon$ cd /opt/yaws-1.65/
killigrew:/opt/yaws-1.65 simon$ sudo make install
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
cp shopcart.beam ../../examples/ebin
cp myappmod.beam ../../examples/ebin
echo "To build the docs, please use make docs before doing make install"
To build the docs, please use make docs before doing make install
make[1]: Nothing to be done for `all'.
set -e ; \
for d in c_src src man www/shopingcart www/code doc scripts ; do \
if [ -f $d/Makefile ]; then ( cd $d && make install ) || exit 1 ;
fi ; \
done
/usr/bin/install -c -d //usr/local/lib/yaws/priv
/usr/bin/install -c ../priv/setuid_drv.so ../priv/epam
//usr/local/lib/yaws/priv
if [ `id -u` = "0" -a -d //usr/local/lib/yaws/priv/epam ]; then \
chown root //usr/local/lib/yaws/priv/epam; \
chmod a+s //usr/local/lib/yaws/priv/epam; \
fi
install -d ///usr/local/var/yaws/www
(cd ..; tar cf - www ) | (cd ///usr/local/var/yaws; tar xf - )
install -d ///usr/local/lib/yaws/examples/ebin
install -d ///usr/local/lib/yaws/examples/include
install -d ///usr/local/lib/yaws/ebin
install -d ///usr/local/var/log/yaws
install -d ///usr/local/var/yaws/ebin
(cd ..; tar cf - ebin ) | (cd ///usr/local/lib/yaws; tar xf - )
(cd ..; tar cf - include ) | (cd ///usr/local/lib/yaws; tar xf - )
install -d ///usr/local/share/man/man1
install -d ///usr/local/share/man/man5
cp yaws.1 ///usr/local/share/man/man1
cp yaws.conf.5 ///usr/local/share/man/man5
cp yaws_api.5 ///usr/local/share/man/man5
cp shopcart.beam ../../examples/ebin
cp shopcart.beam ///usr/local/var/yaws/ebin
cp myappmod.beam ../../examples/ebin
cp myappmod.beam ///usr/local/var/yaws/ebin
install -d ///usr/local/share/doc/yaws-1.65
cp yaws.pdf ///usr/local/share/doc/yaws-1.65
rm -rf /tmp/yaws 2> /dev/null
sh ./Install /usr/local / "/usr/local/bin/erl" \
"" /usr/local/etc/ /usr/local/var/ /usr/local/lib/erlang/bin/
+ prefix=/usr/local
+ destdir=/
+ erl=/usr/local/bin/erl
+ werl=
+ etcdir=/usr/local/etc/
+ vardir=/usr/local/var/
+ bindir=/usr/local/lib/erlang/bin/
+ . ../vsn.mk
++ YAWS_VSN=1.65
+ y=yaws-1.65
+ p=/usr/local
+ e=/usr/local/etc/
+ v=/usr/local/var/
+ install -d ///usr/local/bin
+ cat yaws.template
+ ./Subst %yawsdir% /usr/local/lib/yaws
+ ./Subst %vardir% /usr/local/var/
+ ./Subst %erl% /usr/local/bin/erl
+ ./Subst %run_erl% /usr/local/lib/erlang/bin//run_erl
+ ./Subst %to_erl% /usr/local/lib/erlang/bin//to_erl
+ ./Subst %werl% ''
+ chmod +x ///usr/local/bin/yaws
+ install -d ///usr/local/lib/yaws/examples/ebin
+ install -d ///usr/local/lib/yaws/examples/include
+ '[' -f /etc/gentoo-release ']'
+ '[' -f /etc/redhat-release ']'
+ '[' -f /etc/suseservers ']'
+ '[' -f /etc/debian_version ']'
++ uname -s
++ id -u
+ '[' Darwin = Darwin -a 0 = 0 ']'
+ startupdir=/Library/StartupItems/Yaws
+ '[' '!' -e /Library/StartupItems/Yaws
./Install: line 65: [: missing `]'
+ '[' '!' -d /Library/StartupItems/Yaws ']'
+ echo '/Library/StartupItems/Yaws exists but is not a directory,
bailing out ...'
/Library/StartupItems/Yaws exists but is not a directory, bailing out
...
+ exit 1
make[1]: *** [.install] Error 1
make: *** [install] Error 1
killigrew:/opt/yaws-1.65 simon$
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sat Nov 04, 2006 1:35 pm |
|
|
|
Guest
|
Hi Simon
A typo seems to have crept back into the the Install script that
breaks a first time install on MacOS.
Here's a patch that should fix it. Shoot me some email if you have
any other problems installing on MacOS, I'll try to help.
*** yaws-1.65/scripts/Install Mon Aug 7 05:35:30 2006
--- yaws-1.65.patched/scripts/Install Sat Nov 4 08:23:54 2006
***************
*** 62,68 ****
elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
startupdir="/Library/StartupItems/Yaws"
! if [ ! -e ${startupdir} && ]; then
mkdir ${startupdir};
elif [ ! -d ${startupdir} ]; then
echo "${startupdir} exists but is not a directory, bailing
out ..."
--- 62,68 ----
elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
startupdir="/Library/StartupItems/Yaws"
! if [ ! -e ${startupdir} ]; then
mkdir ${startupdir};
elif [ ! -d ${startupdir} ]; then
echo "${startupdir} exists but is not a directory, bailing
out ..."
On Nov 4, 2006, at 7:34 AM, Simon Chappell wrote:
> Hello,
>
> Mostly I lurk on this list and try out Yaws now and then and enjoy
> tinkering with it. This time I'm trying to use Yariv's fancy new web
> framework and so I'm upgrading my installs. I took Erlang to R11B-1
> and
> that worked just fine. My hardware is an Apple iBook (with a G3 chip)
> running OS X 10.3.9.
>
> Then, with that in place, I download Yaws 1.65 and it successfully
> configures and makes. When I try to do a make install, I get the
> following error:
>
> /Library/StartupItems/Yaws exists but is not a directory, bailing out
> ...
>
> and then it stops. I checked immediately after the script failed and
> /Library/StartupItems/Yaws did not exist, as either a directory or a
> file.
>
> I can do a make local_install, but I thought I'd better report the
> problem. The entire output of the script is at the end of this email.
> Thanks.
>
> Simon
>
>
> killigrew:~ simon$ cd /opt/yaws-1.65/
> killigrew:/opt/yaws-1.65 simon$ sudo make install
> make[1]: Nothing to be done for `all'.
> make[1]: Nothing to be done for `all'.
> make[1]: Nothing to be done for `all'.
> cp shopcart.beam ../../examples/ebin
> cp myappmod.beam ../../examples/ebin
> echo "To build the docs, please use make docs before doing make
> install"
> To build the docs, please use make docs before doing make install
> make[1]: Nothing to be done for `all'.
> set -e ; \
> for d in c_src src man www/shopingcart www/code doc scripts ; do \
> if [ -f $d/Makefile ]; then ( cd $d && make install ) || exit 1 ;
> fi ; \
> done
> /usr/bin/install -c -d //usr/local/lib/yaws/priv
> /usr/bin/install -c ../priv/setuid_drv.so ../priv/epam
> //usr/local/lib/yaws/priv
> if [ `id -u` = "0" -a -d //usr/local/lib/yaws/priv/epam ]; then \
> chown root //usr/local/lib/yaws/priv/epam; \
> chmod a+s //usr/local/lib/yaws/priv/epam; \
> fi
> install -d ///usr/local/var/yaws/www
> (cd ..; tar cf - www ) | (cd ///usr/local/var/yaws; tar xf - )
> install -d ///usr/local/lib/yaws/examples/ebin
> install -d ///usr/local/lib/yaws/examples/include
> install -d ///usr/local/lib/yaws/ebin
> install -d ///usr/local/var/log/yaws
> install -d ///usr/local/var/yaws/ebin
> (cd ..; tar cf - ebin ) | (cd ///usr/local/lib/yaws; tar xf - )
> (cd ..; tar cf - include ) | (cd ///usr/local/lib/yaws; tar xf - )
> install -d ///usr/local/share/man/man1
> install -d ///usr/local/share/man/man5
> cp yaws.1 ///usr/local/share/man/man1
> cp yaws.conf.5 ///usr/local/share/man/man5
> cp yaws_api.5 ///usr/local/share/man/man5
> cp shopcart.beam ../../examples/ebin
> cp shopcart.beam ///usr/local/var/yaws/ebin
> cp myappmod.beam ../../examples/ebin
> cp myappmod.beam ///usr/local/var/yaws/ebin
> install -d ///usr/local/share/doc/yaws-1.65
> cp yaws.pdf ///usr/local/share/doc/yaws-1.65
> rm -rf /tmp/yaws 2> /dev/null
> sh ./Install /usr/local / "/usr/local/bin/erl" \
> "" /usr/local/etc/ /usr/local/var/ /usr/local/lib/erlang/bin/
> + prefix=/usr/local
> + destdir=/
> + erl=/usr/local/bin/erl
> + werl=
> + etcdir=/usr/local/etc/
> + vardir=/usr/local/var/
> + bindir=/usr/local/lib/erlang/bin/
> + . ../vsn.mk
> ++ YAWS_VSN=1.65
> + y=yaws-1.65
> + p=/usr/local
> + e=/usr/local/etc/
> + v=/usr/local/var/
> + install -d ///usr/local/bin
> + cat yaws.template
> + ./Subst %yawsdir% /usr/local/lib/yaws
> + ./Subst %vardir% /usr/local/var/
> + ./Subst %erl% /usr/local/bin/erl
> + ./Subst %run_erl% /usr/local/lib/erlang/bin//run_erl
> + ./Subst %to_erl% /usr/local/lib/erlang/bin//to_erl
> + ./Subst %werl% ''
> + chmod +x ///usr/local/bin/yaws
> + install -d ///usr/local/lib/yaws/examples/ebin
> + install -d ///usr/local/lib/yaws/examples/include
> + '[' -f /etc/gentoo-release ']'
> + '[' -f /etc/redhat-release ']'
> + '[' -f /etc/suseservers ']'
> + '[' -f /etc/debian_version ']'
> ++ uname -s
> ++ id -u
> + '[' Darwin = Darwin -a 0 = 0 ']'
> + startupdir=/Library/StartupItems/Yaws
> + '[' '!' -e /Library/StartupItems/Yaws
> ./Install: line 65: [: missing `]'
> + '[' '!' -d /Library/StartupItems/Yaws ']'
> + echo '/Library/StartupItems/Yaws exists but is not a directory,
> bailing out ...'
> /Library/StartupItems/Yaws exists but is not a directory, bailing out
> ...
> + exit 1
> make[1]: *** [.install] Error 1
> make: *** [install] Error 1
> killigrew:/opt/yaws-1.65 simon$
>
>
> ----------------------------------------------------------------------
> ---
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sat Nov 04, 2006 2:57 pm |
|
|
|
Guest
|
Here's my first dumb question: how do I apply the patch?
(All my experience is enterprise and we don't apply patches in
enterprise systems, everything goes through the source code management
system.)
On Nov 4, 2006, at 7:34 AM, Eric Baur wrote:
> Hi Simon
>
> A typo seems to have crept back into the the Install script that
> breaks a first time install on MacOS.
>
> Here's a patch that should fix it. Shoot me some email if you have any
> other problems installing on MacOS, I'll try to help.
>
>
> *** yaws-1.65/scripts/Install Mon Aug 7 05:35:30 2006
> --- yaws-1.65.patched/scripts/Install Sat Nov 4 08:23:54 2006
> ***************
> *** 62,68 ****
>
> elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
> startupdir="/Library/StartupItems/Yaws"
> ! if [ ! -e ${startupdir} && ]; then
> mkdir ${startupdir};
> elif [ ! -d ${startupdir} ]; then
> echo "${startupdir} exists but is not a directory, bailing
> out ..."
> --- 62,68 ----
>
> elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
> startupdir="/Library/StartupItems/Yaws"
> ! if [ ! -e ${startupdir} ]; then
> mkdir ${startupdir};
> elif [ ! -d ${startupdir} ]; then
> echo "${startupdir} exists but is not a directory, bailing
> out ..."
>
>
>
>
> On Nov 4, 2006, at 7:34 AM, Simon Chappell wrote:
>
>> Hello,
>>
>> Mostly I lurk on this list and try out Yaws now and then and enjoy
>> tinkering with it. This time I'm trying to use Yariv's fancy new web
>> framework and so I'm upgrading my installs. I took Erlang to R11B-1
>> and
>> that worked just fine. My hardware is an Apple iBook (with a G3 chip)
>> running OS X 10.3.9.
>>
>> Then, with that in place, I download Yaws 1.65 and it successfully
>> configures and makes. When I try to do a make install, I get the
>> following error:
>>
>> /Library/StartupItems/Yaws exists but is not a directory, bailing out
>> ...
>>
>> and then it stops. I checked immediately after the script failed and
>> /Library/StartupItems/Yaws did not exist, as either a directory or a
>> file.
>>
>> I can do a make local_install, but I thought I'd better report the
>> problem. The entire output of the script is at the end of this email.
>> Thanks.
>>
>> Simon
>>
>>
>> killigrew:~ simon$ cd /opt/yaws-1.65/
>> killigrew:/opt/yaws-1.65 simon$ sudo make install
>> make[1]: Nothing to be done for `all'.
>> make[1]: Nothing to be done for `all'.
>> make[1]: Nothing to be done for `all'.
>> cp shopcart.beam ../../examples/ebin
>> cp myappmod.beam ../../examples/ebin
>> echo "To build the docs, please use make docs before doing make
>> install"
>> To build the docs, please use make docs before doing make install
>> make[1]: Nothing to be done for `all'.
>> set -e ; \
>> for d in c_src src man www/shopingcart www/code doc scripts ; do \
>> if [ -f $d/Makefile ]; then ( cd $d && make install ) || exit 1 ;
>> fi ; \
>> done
>> /usr/bin/install -c -d //usr/local/lib/yaws/priv
>> /usr/bin/install -c ../priv/setuid_drv.so ../priv/epam
>> //usr/local/lib/yaws/priv
>> if [ `id -u` = "0" -a -d //usr/local/lib/yaws/priv/epam ]; then \
>> chown root //usr/local/lib/yaws/priv/epam; \
>> chmod a+s //usr/local/lib/yaws/priv/epam; \
>> fi
>> install -d ///usr/local/var/yaws/www
>> (cd ..; tar cf - www ) | (cd ///usr/local/var/yaws; tar xf - )
>> install -d ///usr/local/lib/yaws/examples/ebin
>> install -d ///usr/local/lib/yaws/examples/include
>> install -d ///usr/local/lib/yaws/ebin
>> install -d ///usr/local/var/log/yaws
>> install -d ///usr/local/var/yaws/ebin
>> (cd ..; tar cf - ebin ) | (cd ///usr/local/lib/yaws; tar xf - )
>> (cd ..; tar cf - include ) | (cd ///usr/local/lib/yaws; tar xf - )
>> install -d ///usr/local/share/man/man1
>> install -d ///usr/local/share/man/man5
>> cp yaws.1 ///usr/local/share/man/man1
>> cp yaws.conf.5 ///usr/local/share/man/man5
>> cp yaws_api.5 ///usr/local/share/man/man5
>> cp shopcart.beam ../../examples/ebin
>> cp shopcart.beam ///usr/local/var/yaws/ebin
>> cp myappmod.beam ../../examples/ebin
>> cp myappmod.beam ///usr/local/var/yaws/ebin
>> install -d ///usr/local/share/doc/yaws-1.65
>> cp yaws.pdf ///usr/local/share/doc/yaws-1.65
>> rm -rf /tmp/yaws 2> /dev/null
>> sh ./Install /usr/local / "/usr/local/bin/erl" \
>> "" /usr/local/etc/ /usr/local/var/ /usr/local/lib/erlang/bin/
>> + prefix=/usr/local
>> + destdir=/
>> + erl=/usr/local/bin/erl
>> + werl=
>> + etcdir=/usr/local/etc/
>> + vardir=/usr/local/var/
>> + bindir=/usr/local/lib/erlang/bin/
>> + . ../vsn.mk
>> ++ YAWS_VSN=1.65
>> + y=yaws-1.65
>> + p=/usr/local
>> + e=/usr/local/etc/
>> + v=/usr/local/var/
>> + install -d ///usr/local/bin
>> + cat yaws.template
>> + ./Subst %yawsdir% /usr/local/lib/yaws
>> + ./Subst %vardir% /usr/local/var/
>> + ./Subst %erl% /usr/local/bin/erl
>> + ./Subst %run_erl% /usr/local/lib/erlang/bin//run_erl
>> + ./Subst %to_erl% /usr/local/lib/erlang/bin//to_erl
>> + ./Subst %werl% ''
>> + chmod +x ///usr/local/bin/yaws
>> + install -d ///usr/local/lib/yaws/examples/ebin
>> + install -d ///usr/local/lib/yaws/examples/include
>> + '[' -f /etc/gentoo-release ']'
>> + '[' -f /etc/redhat-release ']'
>> + '[' -f /etc/suseservers ']'
>> + '[' -f /etc/debian_version ']'
>> ++ uname -s
>> ++ id -u
>> + '[' Darwin = Darwin -a 0 = 0 ']'
>> + startupdir=/Library/StartupItems/Yaws
>> + '[' '!' -e /Library/StartupItems/Yaws
>> ./Install: line 65: [: missing `]'
>> + '[' '!' -d /Library/StartupItems/Yaws ']'
>> + echo '/Library/StartupItems/Yaws exists but is not a directory,
>> bailing out ...'
>> /Library/StartupItems/Yaws exists but is not a directory, bailing out
>> ...
>> + exit 1
>> make[1]: *** [.install] Error 1
>> make: *** [install] Error 1
>> killigrew:/opt/yaws-1.65 simon$
>>
>>
>> ----------------------------------------------------------------------
>> ---
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> Erlyaws-list mailing list
>> Erlyaws-list@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
| Guest |
Posted: Sun Nov 05, 2006 9:03 pm |
|
|
|
Guest
|
Eric Baur wrote:
> Hi Simon
>
> A typo seems to have crept back into the the Install script that
> breaks a first time install on MacOS.
>
> Here's a patch that should fix it. Shoot me some email if you have
> any other problems installing on MacOS, I'll try to help.
>
>
> *** yaws-1.65/scripts/Install Mon Aug 7 05:35:30 2006
> --- yaws-1.65.patched/scripts/Install Sat Nov 4 08:23:54 2006
> ***************
> *** 62,68 ****
>
> elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
> startupdir="/Library/StartupItems/Yaws"
> ! if [ ! -e ${startupdir} && ]; then
> mkdir ${startupdir};
> elif [ ! -d ${startupdir} ]; then
> echo "${startupdir} exists but is not a directory, bailing
> out ..."
> --- 62,68 ----
>
> elif [ "`uname -s`" = "Darwin" -a `id -u` = 0 ]; then
> startupdir="/Library/StartupItems/Yaws"
> ! if [ ! -e ${startupdir} ]; then
> mkdir ${startupdir};
> elif [ ! -d ${startupdir} ]; then
> echo "${startupdir} exists but is not a directory, bailing
> out ..."
I don't understand this. How can a first time install not work.
Is /Library/StartupItems/Yaws a regular file - and if so why?
Also, what's the deal with the /bin/sh && construct in the patch?
Which case is that supposed to cover. ?
/klacke
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|