New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

passenger-install-apache2-module unable to find MAMP apache installation #113

Closed
FooBarWidget opened this Issue May 29, 2014 · 6 comments

Comments

Projects
None yet
1 participant
@FooBarWidget
Member

FooBarWidget commented May 29, 2014

From sikandsak on April 12, 2008 16:25:16

What steps will reproduce the problem?

  1. On the machine that doesn't have Apache, install MAMP in /Applications
  2. Install Passenger from ruby gem
  3. run passenger-install-apache2-module

What is the expected output? What do you see instead?

I expected that the apache in /Application/MAMP/bin/apache2 got detected. However, it said
that there's no Apache installed in my machine. On the other hand, Apache 2 development
headers has been found at /Applications/MAMP/Library/bin/apxs, which should be mean that I
have apache installation in my machine

Also, at the first line of installation program it said that:

cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at 
/Applications/MAMP/Library/bin/apxs line 218.

What version of the product are you using? On what operating system?

Passenger 1.0.1 / Mac OS X Leopard 10.5.2

Please provide any additional information below.

I've tried to export the variable APXS and APXS2 to Applications/MAMP/bin/apache2/bin/apxs,
but the error still there and it can't find the apache2 still ..

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=12

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From honglilai on April 13, 2008 16:33:31

I believe this is a duplicate of issue #3 . Could you follow the instructions that I
posted in issue #3 ?

Cc: honglilai

Member

FooBarWidget commented May 29, 2014

From honglilai on April 13, 2008 16:33:31

I believe this is a duplicate of issue #3 . Could you follow the instructions that I
posted in issue #3 ?

Cc: honglilai

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From sikandsak on April 13, 2008 22:41:57

After I follow the instruction in issue #3 , here's the result

$ruby -rubygems -e 'gem "passenger"; require "passenger/platform_info"; puts PlatformInfo::APXS2'
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
/Applications/MAMP/Library/bin/apxs

$ export APXS2=/Applications/MAMP/bin/apache2/bin/apxs

$ ruby -rubygems -e 'gem "passenger"; require "passenger/platform_info"; puts PlatformInfo::APXS2'
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
/Applications/MAMP/bin/apache2/bin/apxs

Try to run those ruby script:

  • With the APXS2 set
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    ENV['APXS2'] = "/Applications/MAMP/bin/apache2/bin/apxs"
    find_apxs2 -> "/Applications/MAMP/bin/apache2/bin/apxs"
    env_defined?('APXS2') -> true
  • Without APXS2 set
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    ENV['APXS2'] = nil
    find_apxs2 -> "/Applications/MAMP/Library/bin/apxs"
    env_defined?('APXS2') -> false
Member

FooBarWidget commented May 29, 2014

From sikandsak on April 13, 2008 22:41:57

After I follow the instruction in issue #3 , here's the result

$ruby -rubygems -e 'gem "passenger"; require "passenger/platform_info"; puts PlatformInfo::APXS2'
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/Library/bin/apxs line 218.
/Applications/MAMP/Library/bin/apxs

$ export APXS2=/Applications/MAMP/bin/apache2/bin/apxs

$ ruby -rubygems -e 'gem "passenger"; require "passenger/platform_info"; puts PlatformInfo::APXS2'
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
/Applications/MAMP/bin/apache2/bin/apxs line 218.
/Applications/MAMP/bin/apache2/bin/apxs

Try to run those ruby script:

  • With the APXS2 set
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/bin/apache2/bin/apxs line 218.
    ENV['APXS2'] = "/Applications/MAMP/bin/apache2/bin/apxs"
    find_apxs2 -> "/Applications/MAMP/bin/apache2/bin/apxs"
    env_defined?('APXS2') -> true
  • Without APXS2 set
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or directory at
    /Applications/MAMP/Library/bin/apxs line 218.
    ENV['APXS2'] = nil
    find_apxs2 -> "/Applications/MAMP/Library/bin/apxs"
    env_defined?('APXS2') -> false
@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From honglilai on April 14, 2008 05:09:43

"cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or
directory at /Applications/MAMP/Library/bin/apxs line 218."

It seems that either your MAMP installation is broken, or MAMP itself is broken.
Could you reinstall MAMP and/or contact the MAMP developers about this?

Member

FooBarWidget commented May 29, 2014

From honglilai on April 14, 2008 05:09:43

"cannot open /Applications/MAMP/Library/build/config_vars.mk: No such file or
directory at /Applications/MAMP/Library/bin/apxs line 218."

It seems that either your MAMP installation is broken, or MAMP itself is broken.
Could you reinstall MAMP and/or contact the MAMP developers about this?

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From sikandsak on April 14, 2008 06:35:26

Ah .. you really guided me to the right way.
It was really MAMP that was a curpit

I have found the config_vars.mk here: http://forum.mamp.info/viewtopic.php?t=1866 Then I copied that, to a new file, save as config_vars.mk in /Applications/MAMP/Library/build/
(I had to strip the ending space from each lines, or else it will be error)
And then it found my apache :D

Thanks guy! I have attached the file in case anybody has the same problem.

Attachment: config_vars.mk

Member

FooBarWidget commented May 29, 2014

From sikandsak on April 14, 2008 06:35:26

Ah .. you really guided me to the right way.
It was really MAMP that was a curpit

I have found the config_vars.mk here: http://forum.mamp.info/viewtopic.php?t=1866 Then I copied that, to a new file, save as config_vars.mk in /Applications/MAMP/Library/build/
(I had to strip the ending space from each lines, or else it will be error)
And then it found my apache :D

Thanks guy! I have attached the file in case anybody has the same problem.

Attachment: config_vars.mk

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From honglilai on April 14, 2008 07:00:44

Thanks sikandsak. I've documented this in the users guide.

Status: Invalid

Member

FooBarWidget commented May 29, 2014

From honglilai on April 14, 2008 07:00:44

Thanks sikandsak. I've documented this in the users guide.

Status: Invalid

@FooBarWidget

This comment has been minimized.

Show comment
Hide comment
@FooBarWidget

FooBarWidget May 29, 2014

Member

From honglilai on April 14, 2008 12:50:08

It seems that wasn't the end. Here's a follow-up with more information: http://groups.google.com/group/phusion-passenger/t/e6dac9d5ea0de9c1

Member

FooBarWidget commented May 29, 2014

From honglilai on April 14, 2008 12:50:08

It seems that wasn't the end. Here's a follow-up with more information: http://groups.google.com/group/phusion-passenger/t/e6dac9d5ea0de9c1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment