Announcement

Collapse
No announcement yet.

Can't install PTS 6.2.1 under Ubuntu 16.04 x64

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

  • Can't install PTS 6.2.1 under Ubuntu 16.04 x64

    Hi there,
    here I'm running Ubuntu 16.04 x64 from a live USB stick, and I want to use the Phoronix Test Suite 6.2.1. Since there isn't a package php5-cli in Ubuntu, I installed php-cli. After that, I downloaded the latest 6.2.1 deb and tried to install it via dpkg. However it got dependency problems:

    ubuntu@ubuntu:~/Downloads$ LANG=C sudo dpkg -i phoronix-test-suite_6.2.1_all.deb
    (Reading database ... 192075 files and directories currently installed.)
    Preparing to unpack phoronix-test-suite_6.2.1_all.deb ...
    Unpacking phoronix-test-suite (6.2.1) over (6.2.1) ...
    dpkg: dependency problems prevent configuration of phoronix-test-suite:
    phoronix-test-suite depends on php5-cli; however:
    Package php5-cli is not installed.
    phoronix-test-suite depends on php5-gd; however:
    Package php5-gd is not installed.
    phoronix-test-suite depends on php5-json; however:
    Package php5-json is not installed.

    dpkg: error processing package phoronix-test-suite (--install):
    dependency problems - leaving unconfigured
    Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
    Processing triggers for man-db (2.7.5-1) ...
    Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
    Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
    Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
    Rebuilding /usr/share/applications/bamf-2.index...
    Processing triggers for mime-support (3.59ubuntu1) ...
    Errors were encountered while processing:
    phoronix-test-suite
    ubuntu@ubuntu:~/Downloads$


    So what is wrong here? It looks like the PTS deb depends on php5-cli, but there is only php-cli available.

    Edit:
    I have found issue #118 on Github, but installing php-xml doesn't change anything.
    Last edited by BlackArchon; 22 May 2016, 02:05 PM.

  • #2
    If you install php-CLI and php-XML you should be all set.
    Michael Larabel
    https://www.michaellarabel.com/

    Comment


    • #3
      I'm sorry, but this doesn't seem to be enough. Please have a look at the console output:

      ubuntu@ubuntu:~$ wget http://phoronix-test-suite.com/relea..._6.2.1_all.deb
      --2016-05-23 18:00:03-- http://phoronix-test-suite.com/relea..._6.2.1_all.deb
      Resolving phoronix-test-suite.com (phoronix-test-suite.com)... 69.46.29.27
      Connecting to phoronix-test-suite.com (phoronix-test-suite.com)|69.46.29.27|:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 533332 (521K) [application/x-debian-package]
      Saving to: 'phoronix-test-suite_6.2.1_all.deb'

      phoronix-test-suite_6.2.1_all.deb 100%[================================================== ================================================== ============>] 520.83K 253KB/s in 2.1s

      2016-05-23 18:00:06 (253 KB/s) - 'phoronix-test-suite_6.2.1_all.deb' saved [533332/533332]

      ubuntu@ubuntu:~$ sudo apt-get install php-cli php-xml
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      Note, selecting 'php7.0-xml' instead of 'php-xml'
      The following additional packages will be installed:
      php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline
      Suggested packages:
      php-pear
      The following NEW packages will be installed:
      php-cli php-common php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-readline php7.0-xml
      0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
      Need to get 1993 kB of archives.
      After this operation, 9687 kB of additional disk space will be used.
      Do you want to continue? [Y/n]
      Get:1 http://archive.ubuntu.com/ubuntu xenial/main amd64 php-common all 1:35ubuntu6 [10.8 kB]
      Get:2 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-common amd64 7.0.4-7ubuntu2 [485 kB]
      Get:3 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-json amd64 7.0.4-7ubuntu2 [16.7 kB]
      Get:4 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-opcache amd64 7.0.4-7ubuntu2 [76.1 kB]
      Get:5 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-readline amd64 7.0.4-7ubuntu2 [12.8 kB]
      Get:6 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-cli amd64 7.0.4-7ubuntu2 [1276 kB]
      Get:7 http://archive.ubuntu.com/ubuntu xenial/main amd64 php-cli all 1:7.0+35ubuntu6 [2920 B]
      Get:8 http://archive.ubuntu.com/ubuntu xenial/main amd64 php7.0-xml amd64 7.0.4-7ubuntu2 [112 kB]
      Fetched 1993 kB in 0s (2080 kB/s)
      Selecting previously unselected package php-common.
      (Reading database ... 191101 files and directories currently installed.)
      Preparing to unpack .../php-common_1%3a35ubuntu6_all.deb ...
      Unpacking php-common (1:35ubuntu6) ...
      Selecting previously unselected package php7.0-common.
      Preparing to unpack .../php7.0-common_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-common (7.0.4-7ubuntu2) ...
      Selecting previously unselected package php7.0-json.
      Preparing to unpack .../php7.0-json_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-json (7.0.4-7ubuntu2) ...
      Selecting previously unselected package php7.0-opcache.
      Preparing to unpack .../php7.0-opcache_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-opcache (7.0.4-7ubuntu2) ...
      Selecting previously unselected package php7.0-readline.
      Preparing to unpack .../php7.0-readline_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-readline (7.0.4-7ubuntu2) ...
      Selecting previously unselected package php7.0-cli.
      Preparing to unpack .../php7.0-cli_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-cli (7.0.4-7ubuntu2) ...
      Selecting previously unselected package php-cli.
      Preparing to unpack .../php-cli_1%3a7.0+35ubuntu6_all.deb ...
      Unpacking php-cli (1:7.0+35ubuntu6) ...
      Selecting previously unselected package php7.0-xml.
      Preparing to unpack .../php7.0-xml_7.0.4-7ubuntu2_amd64.deb ...
      Unpacking php7.0-xml (7.0.4-7ubuntu2) ...
      Processing triggers for man-db (2.7.5-1) ...
      Setting up php-common (1:35ubuntu6) ...
      Setting up php7.0-common (7.0.4-7ubuntu2) ...

      Creating config file /etc/php/7.0/mods-available/calendar.ini with new version

      Creating config file /etc/php/7.0/mods-available/ctype.ini with new version

      Creating config file /etc/php/7.0/mods-available/exif.ini with new version

      Creating config file /etc/php/7.0/mods-available/fileinfo.ini with new version

      Creating config file /etc/php/7.0/mods-available/ftp.ini with new version

      Creating config file /etc/php/7.0/mods-available/gettext.ini with new version

      Creating config file /etc/php/7.0/mods-available/iconv.ini with new version

      Creating config file /etc/php/7.0/mods-available/pdo.ini with new version

      Creating config file /etc/php/7.0/mods-available/phar.ini with new version

      Creating config file /etc/php/7.0/mods-available/posix.ini with new version

      Creating config file /etc/php/7.0/mods-available/shmop.ini with new version

      Creating config file /etc/php/7.0/mods-available/sockets.ini with new version

      Creating config file /etc/php/7.0/mods-available/sysvmsg.ini with new version

      Creating config file /etc/php/7.0/mods-available/sysvsem.ini with new version

      Creating config file /etc/php/7.0/mods-available/sysvshm.ini with new version

      Creating config file /etc/php/7.0/mods-available/tokenizer.ini with new version
      Setting up php7.0-json (7.0.4-7ubuntu2) ...

      Creating config file /etc/php/7.0/mods-available/json.ini with new version
      Setting up php7.0-opcache (7.0.4-7ubuntu2) ...

      Creating config file /etc/php/7.0/mods-available/opcache.ini with new version
      Setting up php7.0-readline (7.0.4-7ubuntu2) ...

      Creating config file /etc/php/7.0/mods-available/readline.ini with new version
      Setting up php7.0-cli (7.0.4-7ubuntu2) ...
      update-alternatives: using /usr/bin/php7.0 to provide /usr/bin/php (php) in auto mode
      update-alternatives: using /usr/bin/phar7.0 to provide /usr/bin/phar (phar) in auto mode
      update-alternatives: using /usr/bin/phar.phar7.0 to provide /usr/bin/phar.phar (phar.phar) in auto mode

      Creating config file /etc/php/7.0/cli/php.ini with new version
      Setting up php-cli (1:7.0+35ubuntu6) ...
      Setting up php7.0-xml (7.0.4-7ubuntu2) ...

      Creating config file /etc/php/7.0/mods-available/dom.ini with new version

      Creating config file /etc/php/7.0/mods-available/simplexml.ini with new version

      Creating config file /etc/php/7.0/mods-available/wddx.ini with new version

      Creating config file /etc/php/7.0/mods-available/xml.ini with new version

      Creating config file /etc/php/7.0/mods-available/xmlreader.ini with new version

      Creating config file /etc/php/7.0/mods-available/xmlwriter.ini with new version

      Creating config file /etc/php/7.0/mods-available/xsl.ini with new version
      ubuntu@ubuntu:~$ sudo dpkg -i phoronix-test-suite_6.2.1_all.deb
      Selecting previously unselected package phoronix-test-suite.
      (Reading database ... 191240 files and directories currently installed.)
      Preparing to unpack phoronix-test-suite_6.2.1_all.deb ...
      Unpacking phoronix-test-suite (6.2.1) ...
      dpkg: dependency problems prevent configuration of phoronix-test-suite:
      phoronix-test-suite depends on php5-cli; however:
      Package php5-cli is not installed.
      phoronix-test-suite depends on php5-gd; however:
      Package php5-gd is not installed.
      phoronix-test-suite depends on php5-json; however:
      Package php5-json is not installed.

      dpkg: error processing package phoronix-test-suite (--install):
      dependency problems - leaving unconfigured
      Processing triggers for hicolor-icon-theme (0.15-0ubuntu1) ...
      Processing triggers for man-db (2.7.5-1) ...
      Processing triggers for gnome-menus (3.13.3-6ubuntu3) ...
      Processing triggers for desktop-file-utils (0.22-1ubuntu5) ...
      Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20160415-0ubuntu1) ...
      Rebuilding /usr/share/applications/bamf-2.index...
      Processing triggers for mime-support (3.59ubuntu1) ...
      Errors were encountered while processing:
      phoronix-test-suite
      ubuntu@ubuntu:~$


      Comment


      • #4
        Try using dpkg's --ignore-depends argument then. The next PTS Deb package will update it to use php5-cli OR php-cli. As long as php-cli and php-xml are installed on your system, PTS will work fine.
        Michael Larabel
        https://www.michaellarabel.com/

        Comment


        • #5
          Thank you, this helped!

          However, there are packages the phoronix-test-suite can't find (why is this?):

          ubuntu@ubuntu:~$ phoronix-test-suite benchmark 1605087-HA-WILDCOMPA12

          The following dependencies are needed and will be installed:

          - gfortran
          - libopenmpi-dev
          - openmpi-bin
          - libmpich-dev
          - libfftw3-dev
          - fftw-dev
          - libpcre3-dev
          - mesa-utils
          - unzip

          This process may take several minutes.
          E: Unmet dependencies. Try 'apt-get -f install' with no packages (or
          specify a solution).
          Reading package lists...
          Building dependency tree...
          Reading state information...
          unzip is already the newest version (6.0-20ubuntu1).
          unzip set to manually installed.
          You might want to run 'apt-get -f install' to correct these:
          The following packages have unmet dependencies:
          fftw-dev : Depends: fftw2 (= 2.1.5-3) but it is not going to be installed
          gfortran : Depends: gfortran-5 (>= 5.3.1-3~) but it is not going to
          be installed
          libfftw3-dev : Depends: libfftw3-bin (= 3.3.4-2ubuntu1) but it is not
          going to be installed
          Depends: libfftw3-long3 (= 3.3.4-2ubuntu1) but it is
          not going to be installed
          Depends: libfftw3-quad3 (= 3.3.4-2ubuntu1) but it is
          not going to be installed
          libmpich-dev : Depends: libcr-dev but it is not going to be installed
          Depends: libmpich12 (= 3.2-6build1) but it is not
          going to be installed
          Depends: libcr0 (>= 0.8.2) but it is not going to be installed
          Recommends: mpich (= 3.2-6build1) but it is not going
          to be installed
          libopenmpi-dev : Depends: libopenmpi1.10 (= 1.10.2-8ubuntu1) but it
          is not going to be installed
          Depends: openmpi-common (= 1.10.2-8ubuntu1) but it
          is not going to be installed
          Depends: libibverbs-dev (>= 1.1.7) but it is not
          going to be installed
          Depends: libhwloc-dev but it is not going to be installed
          libpcre3-dev : Depends: libpcre32-3 (= 2:8.38-3.1) but it is not
          going to be installed
          Depends: libpcrecpp0v5 (= 2:8.38-3.1) but it is not
          going to be installed
          openmpi-bin : Depends: libopenmpi1.10 but it is not going to be installed
          Depends: openmpi-common (= 1.10.2-8ubuntu1) but it is
          not going to be installed
          phoronix-test-suite : Depends: php5-cli but it is not installable
          Depends: php5-gd but it is not installable
          Depends: php5-json but it is not installable

          There are dependencies still missing from the system:
          - Fast Fourier Transform 3 Library
          - Fortran Compiler
          - OpenMPI
          - Perl Compatible Regular Expressions

          1: Ignore missing dependencies and proceed with installation.
          2: Skip installing the tests with missing dependencies.
          3: Re-attempt to install the missing dependencies.
          4: Quit the current Phoronix Test Suite process.
          Missing dependencies action:



          Comment


          • #6
            Which Linux distributon is recommended for PTS? Obviously Ubuntu 16.04 isn't compatible.

            Comment


            • #7
              Ubuntu 16.04 is compatible, I use it every day. Sounds like you just have some odd packaging setup. Did you try correcting your packaging state by what it says with:

              sudo apt-get -f install
              Michael Larabel
              https://www.michaellarabel.com/

              Comment


              • #8
                I'm booting Ubuntu from a live USB stick - what should be wrong with the packaging setup?

                Comment


                • #9
                  The easiest way then to use PTS from an Ubuntu 16.04 live stick would be:

                  sudo apt-get install php-cli php-xml git-core
                  git clone https://github.com/phoronix-test-sui...test-suite.git
                  cd phoronix-test-suite/
                  ./phoronix-test-suite <whatever command you want for benchmarking>

                  Simple as that.
                  Michael Larabel
                  https://www.michaellarabel.com/

                  Comment


                  • #10
                    I have the same problem with Debian Jessie 8.5. There are no php-cli or php-xml packages, so I manually installed php5-cli and php5-xmlrpc, and also bc which is required for the pts/pgbench to run:

                    apt-get -y install bc php5-cli php5-xmlrpc
                    wget http://phoronix-test-suite.com/relea..._6.4.0_all.deb
                    dpkg --ignore-depends php-cli,php-gd,php-xml,php-json -i phoronix-test-suite_6.4.0_all.deb

                    and it seems to work OK.

                    Comment

                    Working...
                    X