On 07/18/2011 12:47 AM, Steve Vinoski wrote:
Hi George, thanks for all the details. This seems like a problem with the local_install target, possibly due to recent rebar changes, and I'm trying to track it down. Until I fix it, I think you can work around the problem by explicitly setting the VARDIR directory on your "make" command line. Try this:

mkdir ~/var
make local_install VARDIR=~/var

and let us know if that works.

--steve

Hi Steve,

Sorry for the rather delayed response and thank you for your helpful hint.

I can confirm that the workaround, described below does work.
Regards,
George


On Sun, Jul 17, 2011 at 6:17 PM, George Stoianov <gstoyanoff@gmail.com> wrote:
Hi again,


On 07/17/2011 11:57 PM, George Stoianov wrote:


-------- Original Message --------
Subject: Re: [Erlyaws-list] Fwd: Problem doing a local_install on Ubuntu 11.04
Date: Sat, 16 Jul 2011 00:09:09 +0200
From: Claes Wikstrom <klacke@tail-f.com>
To: George <gstoyanoff@gmail.com>


On 07/15/2011 09:10 PM, George wrote:
> ----- Original message -----
>> On 07/14/2011 08:54 PM, George Stoianov wrote:
>>> To answer my own question ...:
>>>
>>> autoconf; ./configure --prefix=$HOME; make; make local_install
>>>
>>> does it... (you need $HOME/var/yaws)
>>>
>>> Why is it that the solutions comes after hitting the send button :).
>>
>> This is still strange, the --prefix should definitely not be necessary
>> for this. It should only effect make install.
>>
>> Please try
>>
>
>
>> # autoconf; ./configure; make; make local_install
>>
>> That's what I usually do on devel machines where I'm not planning
>> on doing an actual install
>
> I did first try that but it did not work the make local_install
> tried
>/usr/local/var (if I recall correctly) what is the thing that would
> cause the files to go in my home? I checked one of the conf files
> subsequently and found the path registered there and deducted that
> configure can change that. I'm not sure what env variable I might be
> missing?? Any ideas.

None, apart what I asked for. The output of

# autoconf; ./configure; make; make local_install

In a fresh github checkout of yaws.

/klacke




I hope that can shed some light on my situation:

gs@flipper:~/git-repos/yaws$ uname -a
Linux flipper 2.6.38-10-generic #46-Ubuntu SMP Tue Jun 28 15:07:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
gs@flipper:~/git-repos/yaws/src$ git log yaws_server.erl
commit a922ccb753c4d17f3f6b4da0398493786b2fe67a
Author: Christopher Faulet <christopher@yakaz.com>
Date:   Tue Jun 21 09:44:07 2011 +0200

    catch exit signals sent by gserv process
   
    In commit 5cc39b7, the temporary fix for issue #60, all exit signals
    found when erasing transient messages are ignored. This commit
    completes that fix. Exit signals coming specifically from the gserv
    process to shutdown the connection are also ignored.  So, only signals
    from gserv are now processed and all others are flushed.

commit 5cc39b7757c312e592a84763717c562a2804191f
Author: Steve Vinoski <vinoski@ieee.org>
Date:   Mon Jun 20 22:29:42 2011 -0400

    fix reverse proxy problem (issue #60)
   
    Change yaws_server.erl to not exit on {'EXIT', From, Reason} messages
    found when erasing transient messages, a change originally introduced
    in commit c0755739. Doing so was causing reverse proxy to no longer
    work, as reported in issue #60 on github and as experienced by several
    users. Note however that this might be a temporary fix, since it might
    be better to figure out the source of the EXIT message, but I'm
    committing and pushing this fix now for the benefit of those waiting
    to use the reverse proxy feature.
   
    Thanks to Manuel Durán Aguete for providing a test case making it easy
    to reproduce the problem and test the fix.

commit 73c9dcb75af7c5252f23c1a1368aeafd3727483b
Author: Christopher Faulet <christopher@yakaz.com>
Date:   Fri May 27 17:05:25 2011 +0200

    fix filter_auths function
...

gs@flipper:~/git-repos/yaws$

gs@flipper:~/git-repos/yaws$ autoconf; ./configure; make; make local_install
                checking build system type... x86_64-unknown-linux-gnu
                checking host system type... x86_64-unknown-linux-gnu
                checking target system type... x86_64-unknown-linux-gnu
                checking for erl... /usr/bin/erl
                checking for erlc... /usr/bin/erlc
                checking erts version... 5.7.4
                checking kernel version... 2.13.4
                checking stdlib version... 1.16.4
                checking sasl version... 2.1.8
                checking ssl version... 3.10.7
                checking mnesia version... 4.4.12
                checking for gcc... gcc
                checking whether the C compiler works... yes
                checking for C compiler default output file name... a.out
                checking for suffix of executables...
                checking whether we are cross compiling... no
                checking for suffix of object files... o
                checking whether we are using the GNU C compiler... yes
                checking whether gcc accepts -g... yes
                checking for gcc option to accept ISO C89... none needed
                checking how to run the C preprocessor... gcc -E
                checking for grep that handles long lines and -e... /bin/grep
                checking for egrep... /bin/grep -E
                checking whether gcc needs -traditional... no
                checking whether make sets $(MAKE)... yes
                checking for a BSD-compatible install... /usr/bin/install -c
                checking for latex... no
                checking for dvips... no
                checking for pdflatex... no
                checking for epstopdf... no
                checking for erlc... /usr/bin/erlc
                configure: found 64-bit Erlang
                configure: creating ./config.status
                config.status: creating include.mk
                configure: creating ./config.status
                config.status: creating include.mk
                config.status: creating test/support/include.mk
                configure: creating ./config.status
                config.status: creating include.mk
                config.status: creating test/support/include.mk
                config.status: creating test/support/include.sh
                configure: creating ./config.status
                config.status: creating include.mk
                config.status: creating test/support/include.mk
                config.status: creating test/support/include.sh
                config.status: creating yaws.pc
                make[1]: Entering directory `/home/gs/git-repos/yaws/c_src'
                make[1]: Nothing to be done for `all'.
                make[1]: Leaving directory `/home/gs/git-repos/yaws/c_src'
                make[1]: Entering directory `/home/gs/git-repos/yaws/src'
                set -x; \
                    if [  true = "true" ]; then \
                        echo "-define(HAVE_SENDFILE, true)." > yaws_configure.hrl; \
                    else touch yaws_configure.hrl; fi
                + [ true = true ]
                + echo -define(HAVE_SENDFILE, true).
                "/usr/bin/erlc" -W  -pa ../../yaws -I ../include -o ../ebin yaws_sendfile.erl
                make[1]: Leaving directory `/home/gs/git-repos/yaws/src'
                make[1]: Entering directory `/home/gs/git-repos/yaws/man'
                make[1]: Nothing to be done for `all'.
                make[1]: Leaving directory `/home/gs/git-repos/yaws/man'
                make[1]: Entering directory `/home/gs/git-repos/yaws/www/shoppingcart'
                cp -f shopcart.beam ../../examples/ebin
                make[1]: Leaving directory `/home/gs/git-repos/yaws/www/shoppingcart'
                make[1]: Entering directory `/home/gs/git-repos/yaws/www/code'
                cp -f myappmod.beam ../../examples/ebin
                make[1]: Leaving directory `/home/gs/git-repos/yaws/www/code'
                make[1]: Entering directory `/home/gs/git-repos/yaws/doc'
                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]: Leaving directory `/home/gs/git-repos/yaws/doc'

                make[1]: Entering directory `/home/gs/git-repos/yaws/scripts'
                make[1]: Nothing to be done for `all'.

                make[1]: Leaving directory `/home/gs/git-repos/yaws/scripts'
                rm -rf yaws-1.90.script yaws-1.90.boot
                rm -rf yaws-1.90.rel yaws-1.90.tar.gz
                make[1]: Entering directory `/home/gs/git-repos/yaws/c_src'
                make[1]: Nothing to be done for `all'.
                make[1]: Leaving directory `/home/gs/git-repos/yaws/c_src'
                make[1]: Entering directory `/home/gs/git-repos/yaws/src'
                make[1]: Nothing to be done for `all'.
                make[1]: Leaving directory `/home/gs/git-repos/yaws/src'
                make[1]: Entering directory `/home/gs/git-repos/yaws/man'
                make[1]: Nothing to be done for `all'.
                make[1]: Leaving directory `/home/gs/git-repos/yaws/man'
                make[1]: Entering directory `/home/gs/git-repos/yaws/www/shoppingcart'
                cp -f shopcart.beam ../../examples/ebin
                make[1]: Leaving directory `/home/gs/git-repos/yaws/www/shoppingcart'
                make[1]: Entering directory `/home/gs/git-repos/yaws/www/code'
                cp -f myappmod.beam ../../examples/ebin
                make[1]: Leaving directory `/home/gs/git-repos/yaws/www/code'
                make[1]: Entering directory `/home/gs/git-repos/yaws/doc'
                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]: Leaving directory `/home/gs/git-repos/yaws/doc'

                make[1]: Entering directory `/home/gs/git-repos/yaws/scripts'
                make[1]: Nothing to be done for `all'.

                make[1]: Leaving directory `/home/gs/git-repos/yaws/scripts'
                rm -rf yaws-1.90.script yaws-1.90.boot
                rm -rf yaws-1.90.rel yaws-1.90.tar.gz
                (cd scripts && make local_install)
                make[1]: Entering directory `/home/gs/git-repos/yaws/scripts'
                VARDIR='/usr/local/var' ./local-install true
                mkdir: cannot create directory `/usr/local/var/yaws': No such file or directory
                make[1]: *** [local_install] Error 1
                make[1]: Leaving directory `/home/gs/git-repos/yaws/scripts'
                make: *** [local_install] Error 2
                gs@flipper:~/git-repos/yaws$

Thanks very much.
George


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list