You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by Алексей Носков <al...@yahoo.com.INVALID> on 2015/03/18 00:30:21 UTC

error when compilling with --prefix

Hello!
I get an error when try to execute "make install":
 /bin/mkdir -p '/usr/local/apache2/lib/rivet2.2.1'
/bin/mkdir: cannot create directory `/usr/local/apache2': Permission denied
make[2]: *** [install-lib_libexecLTLIBRARIES] Error 1
make[2]: Leaving directory `/home/local/src/rivet-2.2.1/src'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/local/src/rivet-2.2.1/src'
make: *** [install-recursive] Error 1


Here is my cofigure command:
./configure --prefix=/home/local --with-tcl=/home/local/static/tcl86/lib/tclConfig.sh --with-tclsh=/home/local/static/tcl86/bin/tclsh --with-apxs=/home/local/bin/apxs
/home/local is folder which I use as prefix for compilling programs without root access. I have also compilled apache into /home/local folder. 
It looks like a bug, instead of /home/local it tries to install rivet to /usr/local/apache2
Thank you



Re: error when compilling with --prefix

Posted by Massimo Manghi <ma...@unipr.it>.
I made the perhaps wrong assumption you're install rivet 2.1.x, you 
probably are installing 2.2.1, therefore every rivet 2.1 should read 
rivet 2.2

  -- Massimo

On 03/18/2015 11:38 AM, Massimo Manghi wrote:
>
>
> On 03/18/2015 09:21 AM, Алексей Носков wrote:
>> I have changed the configure file:
>>
>> 578:ac_default_prefix=/home/local
>> 887:exec_prefix=/home/local
>> 16279:  with_apache="/home/local/apache2"
>>
>
> which would force you to change the script every time we release a new
> version of rivet. The whole business of having a configure script is
> handling specificities of the build and installation environments,
> target directories in the first place
>
>   check the INSTALL file in the distribution directory (which version
> are you building?). It definitely needs update: for example rivet 2.1
> supports apache 2, so no need to use the --with-apache-version switch in
> that case. You can work out easily the configure line that would fit
> your environment (what is your environment?)
>
> a possible line could be
>
> ./configure --with-apache=/usr/local/apache2
>              --with-tcl=/usr/lib/tcl8.5/                 \
>              --with-apxs=/usr/local/apache2/bin/apxs     \
>              --with-rivet-target-dir=/usr/local/lib/rivet2.1   \
>              --enable-version-display
>
>   -- Massimo
>
>> After it rivet has installed into /home/local without any problem
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
> For additional commands, e-mail: rivet-dev-help@tcl.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: error when compilling with --prefix

Posted by Massimo Manghi <ma...@unipr.it>.

On 03/18/2015 09:21 AM, Алексей Носков wrote:
> I have changed the configure file:
>
> 578:ac_default_prefix=/home/local
> 887:exec_prefix=/home/local
> 16279:  with_apache="/home/local/apache2"
>

which would force you to change the script every time we release a new 
version of rivet. The whole business of having a configure script is 
handling specificities of the build and installation environments, 
target directories in the first place

  check the INSTALL file in the distribution directory (which version 
are you building?). It definitely needs update: for example rivet 2.1 
supports apache 2, so no need to use the --with-apache-version switch in 
that case. You can work out easily the configure line that would fit 
your environment (what is your environment?)

a possible line could be

./configure --with-apache=/usr/local/apache2
             --with-tcl=/usr/lib/tcl8.5/                 \
             --with-apxs=/usr/local/apache2/bin/apxs     \
             --with-rivet-target-dir=/usr/local/lib/rivet2.1   \
             --enable-version-display

  -- Massimo

> After it rivet has installed into /home/local without any problem

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org


Re: error when compilling with --prefix

Posted by Алексей Носков <al...@yahoo.com.INVALID>.
I have changed the configure file:
578:ac_default_prefix=/home/local
887:exec_prefix=/home/local
16279:  with_apache="/home/local/apache2"
After it rivet has installed into /home/local without any problem