Score:-1

How can I install the dependencies for Phoronix Test Suite?

cn flag
Joe

I'm using Ubuntu 20.04 LTS, and I tried installing Phoronix by downloading the .deb file from their website and using dpkg. I get some unmet dependencies on php5 pacakges;

 phoronix-test-suite depends on php-cli | php5-cli; however:
  Package php-cli is not installed.
  Package php5-cli is not installed.
 phoronix-test-suite depends on php5-cli | php-xml; however:
  Package php5-cli is not installed.
  Package php-xml is not installed.

I tried installing these, and I get that

  Package php5-cli 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
  However the following packages replace it:
  php7.0-cli:i386 php7.0-cli
  E: Package 'php5-cli' has no installation candidate

apparently this is because php5 is obsolete, according to this answer. I read the answer but I didn't understand what they were saying that I need to do.

Can someone explain to me how to overcome this dependency issue in installing Phoronix?

Doug Smythies avatar
gn flag
I run Phoronix on a 20.04 server, but I run it directly from a git clone. I have php7.4-cli.
Knud Larsen avatar
by flag
The file control in phoronix-test-suite_10.4.0_all.deb says `Depends: php-cli|php5-cli,php5-cli|php-xml` ..... Please install packages with apt or gdebi to get the dependencies installed. .... Ubuntu 20.04 : php-cli will install `php7.4-cli` which *is* included in the start script `/usr/bin/phoronix-test-suite`
N0rbert avatar
zw flag
Does this answer your question? [How do I install a .deb file via the command line?](https://askubuntu.com/questions/40779/how-do-i-install-a-deb-file-via-the-command-line)
Joe avatar
cn flag
Joe
@N0rbert, no it doesn't there's a difficulty with installing the dependencies that come up when I use dpkg which I explained in my original post. I'm going to try gdebi
N0rbert avatar
zw flag
If this simple method fails, then you have broken/messed repositories. Please add the output of `apt-cache policy php-cli php-common php-gd php-xml xz-utils` to the question body by editing it.
karel avatar
sa flag
Does this answer your question? [How do I restore the default repositories?](https://askubuntu.com/questions/124017/how-do-i-restore-the-default-repositories)
Score:0
us flag

Add the PHP ppa: sudo add-apt-repository ppa:ondrej/php

Then update and upgrade: sudo apt update sudo apt upgrade If you get a fix-broken-install issue, try running: sudo apt install --fix-broken (source)

Now dpkg the .deb and it should be resolved!

Score:-1
in flag

You should try sudo apt update and sudo apt-get install <dependency_name>

Like this:

sudo apt update    
sudo apt-get install php-cli
sudo apt-get install php5-cli
Joe avatar
cn flag
Joe
I already tried this and it doesn't work. I've edited my question to make that more clear
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.