CGS | 1 Jun 2012 01:39
Picon

YAWS not creating the directory structure on CentOS 5.8

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;
2. error in finding /usr/local/var/log/yaws (non-existing at the boot).
After I created manually these paths, I was able to start Yaws.

I write this message hoping it will help the other CentOS users.

Regards,
CGS

------------------------------------------------------------------------------
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
Steve Vinoski | 1 Jun 2012 01:58
Picon
Gravatar

Re: YAWS not creating the directory structure on CentOS 5.8

On Thu, May 31, 2012 at 7:39 PM, CGS <cgsmcmlxxv@...> 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;
> 2. error in finding /usr/local/var/log/yaws (non-existing at the boot).
> After I created manually these paths, I was able to start Yaws.

Do you happen to have the exact error messages you saw? If so please
send them to me.

--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/
Steve Vinoski | 1 Jun 2012 04:44
Picon
Gravatar

Re: YAWS not creating the directory structure on CentOS 5.8

On Thu, May 31, 2012 at 7:39 PM, CGS <cgsmcmlxxv@...> 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/
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
Steve Vinoski | 1 Jun 2012 13:46
Picon
Gravatar

Re: YAWS not creating the directory structure on CentOS 5.8

The -d option is supplied within the makefiles, at the points where
the install tool is used.

--steve

On Fri, Jun 1, 2012 at 6:58 AM, CGS <cgsmcmlxxv@...> wrote:
> 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@...> wrote:
>>
>> On Thu, May 31, 2012 at 7:39 PM, CGS <cgsmcmlxxv@...> 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/
CGS | 1 Jun 2012 14:34
Picon

Re: YAWS not creating the directory structure on CentOS 5.8

I really don't know what happened during the installation because I found in scripts/INSTALL (line 22):

install -d ${destdir}${vardir}/log/yaws

which should have been processed. I also test install -d separately and it works fine on that OS. Strangely enough, I suppose that will remain a mystery for the moment and, who knows, maybe this is an isolated case. Maybe it wouldn't be a bad idea to check if all the directory structure was completed before exiting from the installation part.

Cheers,
CGS





On Fri, Jun 1, 2012 at 1:46 PM, Steve Vinoski <vinoski-EkmVulN54Sk@public.gmane.org> wrote:
The -d option is supplied within the makefiles, at the points where
the install tool is used.

--steve

On Fri, Jun 1, 2012 at 6:58 AM, CGS <cgsmcmlxxv-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> 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