Re: Compile and install in non-standard directory

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Setting INSTALL_ROOT with configure does not appear to do anything. If
I do it that way, the "make install" step ignores the INSTALL_ROOT
completely and tries to libphp5.so in Apache's default location. If I
specify INSTALL_ROOT again during the "make install" step, it throws
the same error as previous trying to much with a non-existant apache
config file.

On Wed, Mar 4, 2015 at 6:04 PM, Jorge F. Hernandez <jfha73@xxxxxxxxx> wrote:
>
> On 03/04/2015 06:46 PM, Andy Theuninck wrote:
>>
>> I expected this to be straightforward but I'm running into perplexing
>> problems and having little luck googling solutions. I would like to
>> install all of the compiled files in non-standard directories so I can
>> have the compiled version side-by-side with my current version. This
>> is with the PHP-5.6 branch from github, if relevant.
>>
>> I'm running ./configure specifying both --prefix and --exec-prefix.
>> Compilation finishes without issue. The first thing I notice when I
>> run make install is it tries to dump the apache module in Apache's
>> default directory completely ignoring the specified prefixes. After
>> reviewing ./configure --help and all the documentation I can track
>> down, I don't see any clear solution to this. Is there a way to
>> specify an install path here that I'm missing?
>>
>> Next I tried using INSTALL_PATH. This isn't ideal since it appear to
>> create /usr/lib etc directory levels under INSTALL_PATH, but at least
>> the setting works. Except this crashes too. I'm seeing this exact bug
>> from 2002 (reported as fixed but does not seem to be...):
>> https://bugs.php.net/bug.php?id=17491
>>
>> If I run:
>> INSTALL_PATH=/home/andy/php56/ make install
>> The process dies with this error:
>> apxs:Error: Config file /home/andy/php56//etc/httpd/conf/httpd.conf not
>> found.
>>
>> I really don't need the install process monkeying with my Apache
>> configuration; I'm perfectly capable of adjusting it myself later. Is
>> there any option I can specify to simply make it skip that step? Again
>> I looked at the configure --help options and nothing stood out as
>> particularly likely.
>
> The way I always did it was setting it at configure time, Eg:
> INSTALL_PATH=/opt/php56 ./configure...
>
> Did you try that?




[Index of Archives]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [Postgresql]     [PHP Books]     [PHP Databases]     [PHP SOAP]
  Powered by Linux