Announcement

Collapse
No announcement yet.

Missing php5-json

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Missing php5-json

    I am trying to run the phoronix test suite on a laptop using a USB live ubuntu OS. I am unable to install php5-json which is needed to run the phoronix test suite. I have installed php5 using apt-get, but when I run " phoronix-test-suite list-tests" I get the error below:

    --start error text ---------------------
    The following PHP extensions are REQUIRED by the Phoronix Test Suite:

    JSON PHP JSON support is required for OpenBenchmarking.org communication.

    The following PHP extensions are OPTIONAL but recommended:

    PCNTL PHP PCNTL is highly recommended as it is required by some tests.
    PHP FPDF PHP FPDF is recommended if wishing to generate PDF reports.
    --stop error text ---------------------


    When I try to install php5 using the command "sudo apt-get install php5-cli php5-json php5-gd" I get the following error:

    --start error text ---------------------
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    Package php5-json is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'php5-json' has no installation candidate
    --stop error text ---------------------

    I have been searching for the missing package, but it is not clear to me how to make sure this is included.

    Thanks for any help you can give me.

  • #2
    It's found in Ubuntu package archive... sudo apt-get install php5-json. From Ubuntu Live you might need to manually enable the universe repository if it's in there.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      Still not able to install

      Ok, I went into the system settings and enabled the universe setting. I still get the same error message.

      --start error text ---------------------
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Package php5-json is not available, but is referred to by another package.
      This may mean that the package is missing, has been obsoleted, or
      is only available from another source

      E: Package 'php5-json' has no installation candidate
      --stop error text ---------------------


      Do I need to be in a particular directory when I run "sudo apt-get install php5-json"?

      Do I need to download this "package" ?

      I am new to running ubuntu from USB; is there something I need to do after enabling the universe setting?

      Thanks again for your help.

      Comment

      Working...
      X