From decda93b269df29be6707cbf8e635310f8002024 Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Wed, 10 Jun 2015 11:10:26 +0200 Subject: Add "ldconfig" to the installation instructions --- documentation/install.html | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/documentation/install.html b/documentation/install.html index a498acb..753de5d 100644 --- a/documentation/install.html +++ b/documentation/install.html @@ -53,16 +53,6 @@

This will start the compiler and build the library.

- -

Compiling on OSX?

-

- If you compile the software on OSX, you may run into linking and "unresolved - symbol" errors. In that case you will have to make a change to the Makefile. - Somewhere in this Makefile there is an option "LINKER_FLAGS". This option - should be extended, and the extra flag "-undefined dynamic_lookup" should - be added to it. -

-

After you ran 'make', and the PHP-CPP library was built, all that is left to do is install it on your system. You can use the "make install" command for it. @@ -72,8 +62,27 @@

sudo make install

+

+ We've heard reports from some users that when they try to run their first extension, + an error is reported that the "libphpcpp.so" can not be located on their system. + To fix this, you should update the shared library cache on your system. This + can be done with the "ldconfig" command. +

+

+

sudo make install
+

That was it! After these steps you are now the happy owner of a system with PHP-CPP installed and nothing can stop you from building your first fast native PHP extension.

+ +

Compiling on OSX?

+

+ If you try to compile the software on OSX, you may run into linking and "unresolved + symbol" errors. In that case you should make a change to the Makefile. + Somewhere in the Makefile there is an option "LINKER_FLAGS". This option + should be modified, the flag "-undefined dynamic_lookup" should + be added to it. +

+ -- cgit v1.2.3