Can you post the contents of your /usr/bin/phoronix-test-suite script? It shouldn't be too long.
I installed the test suite in FreeBSD 7.2 but can't get the executable to run (everything as root):
Code:# ./install-shCode:Phoronix Test Suite Installation Completed Executable File: /usr/bin/phoronix-test-suite Documentation: /usr/share/doc/phoronix-test-suite/ Phoronix Test Suite Files: /usr/share/phoronix-test-suite/
In /usr/bin:
just returns:Code:./phoronix-test-suite
Tried rehash and then running: 'phoronix-test-suite' from the command line prompt but get the same message.Code:To run the Phoronix Test Suite locally you must first change directories to phoronix-test-suite/ or install the program using the install-sh script. For support visit: http://www.phoronix-test-suite.com/
The script is definitely here: /usr/bin/phoronix-test-suite but it won't run.
Also, can't use the GUI because PHP-GTK is a broken port - not compatible with PHP5.
Any idea what's wrong?
...Jeff
Can you post the contents of your /usr/bin/phoronix-test-suite script? It shouldn't be too long.
Here it is. Some commands don't look like FreeBSD to me. Maybe this is just for Linux?
...Jeff
=============================
#!/bin/sh
#
# Phoronix Test Suite
# URLs: http://www.phoronix.com, http://www.phoronix-test-suite.com/
# Copyright (C) 2008 - 2009, Phoronix Media
# Copyright (C) 2008 - 2009, Michael Larabel
# phoronix-test-suite: The Phoronix Test Suite is an extensible open-source testing / benchmarking platform
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Full path to root directory of the actual Phoronix Test Suite code
export PTS_DIR=/usr/share/phoronix-test-suite
export PTS_MODE="CLIENT"
if [ $PTS_DIR != `pwd` ]
then
cd $PTS_DIR
fi
# Determine PHP binary location
if [ -x /usr/bin/php5 ] || [ -x /usr/local/bin/php5 ] || [ -x /usr/pkg/bin/php5 ]
then
export PHP_BIN="php5"
elif [ -x /usr/bin/php ] || [ -x /usr/local/bin/php ] || [ -x /usr/pkg/bin/php ]
then
export PHP_BIN="php"
elif [ -x /usr/php5/bin/php ]
then
export PHP_BIN="/usr/php5/bin/php"
elif [ -x /usr/php/bin/php ]
then
export PHP_BIN="/usr/php/bin/php"
else
export PHP_BIN=""
fi
# Make sure PHP is installed
if [ "X$PHP_BIN" = "X" ]
then
cat <<'EOT'
PHP 5.x CLI Must Be Installed To Run The Phoronix Test Suite.
Only PHP For The Command Line Is Needed, Not A Complete PHP Web Server Installation.
The PHP CLI package is generally called php-cli or php5-cli.
For more information visit: http://www.phoronix-test-suite.com/
EOT
exit
fi
# Ensure the user is in the correct directory
if [ ! -f pts-core/phoronix-test-suite.php ]
then
cat <<'EOT'
To run the Phoronix Test Suite locally you must first change directories to phoronix-test-suite/
or install the program using the install-sh script. For support visit: http://www.phoronix-test-suite.com/
EOT
exit
fi
# Command-specific conditions
case "$1" in
"test-module" | "debug-module")
export PTS_IGNORE_MODULES=1
;;
esac
# Run The Phoronix Test Suite
$PHP_BIN pts-core/phoronix-test-suite.php $@
What happens if you:
cd /usr/share/phoronix-test-suite/
./usr/bin/phoronix-test-suite system-info
or something like that? Or when you download PTS and extract it and before running install-sh, but just run: ./phoronix-test-suite from within the directory?
Just says command not found.
Nothing works. I think it's because it's designed for Linux.
You should get someone to make a FreeBSD port of this so more people can use it. You're missing a large community by not supporting BSD directly.
Sorry I just don't have the skills and time to get this working now.
Tnx, Jeff
What version are you using? I have ran the Phoronix Test Suite (1.6, 1.8, and early 2.0 snapshots) on FreeBSD, PC-BSD, NetBSD, etc... It runs on BSD. I wrote in the BSD support. Either you have hit some PTS bug or have some odd system configuration or something like that or there is a regression.
Using PCBSD 7.1 (FreeBSD 7.2)
A port is the easiest way to get people to use an app on FreeBSD.
I can get the phoronix-test-suite to launch and right now I'm going through installing each test because of a lack of xdg-screensaver(?) won't let me install the entire thing at once.
That said, /usr/share/phoroni... will not work and returns the message above about running locally and such. I should also mention that the mirrors for the necessary files have never worked for me, ever.