I'm having trouble getting open source Virtuoso to compile with PHP hosting
support.
I tried installing PHP 5 via brew:
[ns3:~] administrator% brew install homebrew/php/php56
==> Installing php56 from homebrew/php
==> Downloading
https://homebrew.bintray.com/bottles-php/php56-5.6.33_9.sierra.bottle.tar.gz
100.0%
==> Pouring php56-5.6.33_9.sierra.bottle.tar.gz
==> Caveats
The php.ini file can be found in:
/usr/local/etc/php/5.6/php.ini
Extensions
If you are having issues with custom extension compiling, ensure that you are
using the brew version, by placing /usr/local/bin before /usr/sbin in your PATH:
PATH="/usr/local/bin:$PATH"
PHP56 Extensions will always be compiled against this PHP. Please install them
using --without-homebrew-php to enable compiling against system PHP.
PHP CLI
If you wish to swap the PHP you use on the command line, you should add the
following to ~/.bashrc, ~/.zshrc, ~/.profile or your shell's equivalent
configuration file:
export PATH="$(brew --prefix homebrew/php/php56)/bin:$PATH"
FPM
To launch php-fpm on startup:
mkdir -p ~/Library/LaunchAgents
cp /usr/local/opt/php56/homebrew.mxcl.php56.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.php56.plist
The control script is located at /usr/local/opt/php56/sbin/php56-fpm
OS X 10.8 and newer come with php-fpm pre-installed, to ensure you are using
the brew version you need to make sure /usr/local/sbin is before /usr/sbin in
your PATH:
PATH="/usr/local/sbin:$PATH"
You may also need to edit the plist to use the correct "UserName".
Please note that the plist was called 'homebrew-php.josegonzalez.php56.plist'
in old versions of this formula.
With the release of macOS Sierra the Apache module is now not built by default.
If you want to build it on your system you have to install php with the
--with-httpd option. See brew options php56 for more details.
By 31st March 2018 we will deprecate and archive the PHP tap.
Some of the formulae will be migrated to homebrew-core.
For more details, see https://github.com/Homebrew/homebrew-php/issues/4721
To have launchd start homebrew/php/php56 now and restart at login:
brew services start homebrew/php/php56
==> Summary
🍺 /usr/local/Cellar/php56/5.6.33_9: 334 files, 37.7MB
[ns3:~] administrator%
then I added my config.nice entry in the Virtuoso source folder:
"--enable-php5=/usr/local/Cellar/php56/5.6.33_9" \
... and tested my config... no luck, I get this error:
[ns3:~/src/virtuoso-opensource] administrator% sudo ./config.nice
checking libphp5 library usability... bad. Check config.log for details
in config.log I see this warning (should that be of concern?) and this lphp5
error:
configure:17247: checking libphp5 library usability
configure:17285: clang -o conftest -O -arch x86_64 -mmacosx-version-min=10.7
-I/usr/local/Cellar/php56/5.6.33_9/include/php/main
-I/usr/local/Cellar/php56/5.6.33_9/include/php/Zend -I/usr/local/Cellar/php56/$
In file included from conftest.c:152:
In file included from
/usr/local/Cellar/php56/5.6.33_9/include/php/main/php.h:35:
In file included from
/usr/local/Cellar/php56/5.6.33_9/include/php/Zend/zend.h:51:
In file included from
/usr/local/Cellar/php56/5.6.33_9/include/php/Zend/zend_config.h:1:
/usr/local/Cellar/php56/5.6.33_9/include/php/main/../main/php_config.h:2189:9:
warning: 'PACKAGE_BUGREPORT' macro redefined [-Wmacro-redefined]
#define PACKAGE_BUGREPORT ""
^
conftest.c:6:9: note: previous definition is here
#define PACKAGE_BUGREPORT "vos.ad...@openlinksw.com"
ld: library not found for -lphp5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
configure:17285: $? = 1
configure: program exited with status 1
configure: failed program was:
| /* confdefs.h */
And just in case you were wondering, yes, command line tools are installed
(always worth checking):
[ns3:~/src/virtuoso-opensource] administrator% xcode-select --install
xcode-select: error: command line tools are already installed, use "Software
Update" to install updates
At this point, I can't seem to google my way around the problem. Does anyone
have any ideas?
Cameron Knowlton
iGods Internet Marketing Inc.
came...@igods.com
P: 250.382.0226
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Virtuoso-users mailing list
Virtuoso-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/virtuoso-users
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Virtuoso-users mailin