CGS | 1 Jun 2012 12:58
Picon

Re: YAWS not creating the directory structure on CentOS 5.8

Hi Steve,

Here is the output (lines 76 and 77 from include.mk):

INSTALL=/usr/bin/install -c
INSTALL_DATA=${INSTALL} -m 644

As you can see, the -d option is missing. I have autoconf 2.68, if this info helps.

Cheers,
CGS





On Fri, Jun 1, 2012 at 4:44 AM, Steve Vinoski <vinoski-EkmVulN54Sk@public.gmane.org> wrote:
On Thu, May 31, 2012 at 7:39 PM, CGS <cgsmcmlxxv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hi list,
>
> I managed to install Yaws 1.92 from git (following the instructions from
> http://yaws.hyber.org/configuration.yaws) on CentOS 5.8 (final), x86_64
> architecture, with Erlang/OTP R15B01, but I got few errors after building
> it. The errors were related to the path problems:
> 1. I started Yaws as root and it didn't create the CTL file because of
> non-existing a directory structure;

I found that in the code, the return value of filelib:ensure_dir for
this directory was not checked or asserted. I changed the code to
check that it returns ok.

> 2. error in finding /usr/local/var/log/yaws (non-existing at the boot).

This is strange, as this directory is created under "make install"
using an install program appropriate for the platform, typically
"install -c -d" which is supposed to create any missing directories.
What do you get if you run

grep INSTALL include.mk

thanks,
--steve

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Gmane