WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: apxs in apache2  (Read 2949 times)

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
apxs in apache2
« on: June 02, 2009, 12:26:12 PM »
The first line in this file should be
Code: [Select]
#!/usr/local/bin/perl -w
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard

Offline softwaregurl

  • Suspended
  • Full Member
  • ***
  • Posts: 109
Re: apxs in apache2
« Reply #1 on: June 08, 2009, 07:40:41 PM »
that would depend on if you have perl5 or perl_xml or some other perl loaded.  the standard perl path would be
Code: [Select]
#!/usr/bin/perl i usually symlink from there to whichever perl.
Old wounds that have never healed need to be re-exposed before the cure can be applied.  The cure must be available before the wound is re-exposed.

Offline robc

  • Sr. Member
  • ****
  • Posts: 447
Re: apxs in apache2
« Reply #2 on: June 09, 2009, 12:49:54 AM »
Both the perl5 and perl_xml have /usr/local/bin/perl. The line in apxs right now is
Code: [Select]
#!/replace/with/path/to/perl/interpreter -wThe reason I bring this up is because when compiling against apache this file is used and in its present state requires a work-around. sed can be used to do this, but I did this so I wouldn't have to load it:
Code: [Select]
echo "#!/usr/local/bin/perl -w" > apxs
cat /usr/local/bin/apxs | grep -v -e '#!/' >> apxs
sudo mv apxs /usr/local/bin/apxs
sudo chmod 777 /usr/local/bin/apxs
"Never give up! Never surrender!" - Commander Peter Quincy Taggart

"Make it so." - Captain Picard