• About Us
  • Blog
  • Basket
  • Account
  • Sign In


PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 10 Feb 2016 10:08 AM by  Ben Shillito
PHP Installation errors
 1 Replies
You are not authorized to post a reply.
Author Messages

Robert Ropotan

New Member

New Member

10 Feb 2016 12:21 AM

    I am trying to follow this:


    First ./configure spits out this: cp: cannot stat `src/pattern/FiftyOneDegreesPatternV3.php': No such file or directory

    make install says: make: *** No rule to make target `/usr/local/Device-Detection/php/pattern/src/pattern/51Degrees_PHP.cpp', needed by `src/pattern/51Degrees_PHP.lo'. Stop.
    I checked the github folder, there is no FiftyOneDegreesPatternV3.php. The config.m4 file also mentions the same script in some include folder but I can't see to be able to see that anywhere on github: AC_CONFIG_COMMANDS_PRE(cp src/pattern/FiftyOneDegreesPatternV3.php includes/)

    I am a bit lost here, help.

    Ben Shillito

    New Member

    New Member

    10 Feb 2016 10:08 AM
    • Accepted Answer
    The most likely cause of this is that SWIG is not installed. The step prior to the copy uses SWIG to generate a wrapper for the C code (FiftyOneDegreesPatternV3.php). Doing
    sudo apt-get install swig
    if you are using an Ubuntu distribution will do the trick. Let me know if this fixes it.
    You are not authorized to post a reply.