Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Doesn't work in FreeBSD

  1. #1
    Join Date
    Jul 2009
    Posts
    4

    Default Doesn't work in FreeBSD

    I installed the test suite in FreeBSD 7.2 but can't get the executable to run (everything as root):

    Code:
    # ./install-sh
    Code:
    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:
    Code:
    ./phoronix-test-suite
    just returns:

    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/
    Tried rehash and then running: 'phoronix-test-suite' from the command line prompt but get the same message.

    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

  2. #2

    Default

    Can you post the contents of your /usr/bin/phoronix-test-suite script? It shouldn't be too long.

  3. #3
    Join Date
    Jul 2009
    Posts
    4

    Default

    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 $@

  4. #4

    Default

    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?

  5. #5
    Join Date
    Jul 2009
    Posts
    4

    Default

    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

  6. #6

    Default

    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.

  7. #7
    Join Date
    Jul 2009
    Posts
    4

    Default

    Using PCBSD 7.1 (FreeBSD 7.2)

    A port is the easiest way to get people to use an app on FreeBSD.

  8. #8
    Join Date
    Nov 2008
    Posts
    6

    Default

    Quote Originally Posted by dejamuse View Post
    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.

  9. #9
    Join Date
    May 2007
    Location
    Third Rock from the Sun
    Posts
    6,584

    Default

    Quote Originally Posted by pcfxer View Post
    I should also mention that the mirrors for the necessary files have never worked for me, ever.
    Try using a different DNS server. I don't think you can blame PTS for not being able to reach mirrors that the rest of us can.

  10. #10
    Join Date
    Nov 2008
    Posts
    6

    Default

    Quote Originally Posted by deanjo View Post
    Try using a different DNS server. I don't think you can blame PTS for not being able to reach mirrors that the rest of us can.
    Okay, I shall try it out. I use OpenDNS.org so I assumed that things would be fine.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •