You are not logged in.
Hey,
I just installed PTS via
pacaur -S phoronix-test-suite-gitIt told me add root to the open_basedir and enable the json, curl, gd and openssl extensions in /etc/php/php.ini, which I did.
The first problem is, that the freshly installed binary contains somehow the makepkg's path, instead of the correct one:
$ grep PTS_DIR=/ /usr/bin/phoronix-tets-suite
export PTS_DIR=/tmp/makepkg/phoronix-test-suite-git/pkg/phoronix-test-suite-git/usr/share/phoronix-test-suite(My pacman cache obviously lays within a tmpfs) So I changed this to
export PTS_DIR=/usr/share/phoronix-test-suiteand tried to run PTS for the first time
$ phoronix-test-suite
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
NOTICE: The php.ini configuration is using the "open_basedir" directive, which may prevent some parts of the Phoronix Test Suite from working. See the Phoronix Test Suite documentation for more details and to disable this setting.All dependencies are satisfied, my php.ini looks as follows
$ egrep "open_basedir|=(json|zip|curl|openssl|gd)" /etc/php/php.ini
; open_basedir, if set, limits all file operations to the defined directory
open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/:/usr/share/webapps/:/
extension=curl.so
extension=gd.so
extension=openssl.so
extension=zip.so
extension=json.soDo I need to install any other packages? Furthermore, the php-gtk package is required for PTS's GUI I'd like to use, but it's heavily outdated and there seems to be no alternative package available. When trying to run PTS's GUI, it simply shows the loading screen in my webbrowser but obviously fails and loads forever
$ phoronix-test-suite gui
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
NOTICE: The php.ini configuration is using the "open_basedir" directive, which may prevent some parts of the Phoronix Test Suite from working. See the Phoronix Test Suite documentation for more details and to disable this setting.
To start server run new script: /tmp/tmp.Sbl8i5TBZX/web-server-launcher
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/json.so' - /usr/lib/php/modules/json.so: cannot open shared object file: No such file or directory in Unknown on line 0
NOTICE: The php.ini configuration is using the "open_basedir" directive, which may prevent some parts of the Phoronix Test Suite from working. See the Phoronix Test Suite documentation for more details and to disable this setting.
PHP 5.6.5 Development Server started at Wed Feb 18 00:24:11 2015
Listening on http://localhost:4036
Document root is /usr/share/phoronix-test-suite/pts-core/web-interface
Press Ctrl-C to quit.
PHP Fatal error: Call to undefined function socket_create_listen() in /usr/share/phoronix-test-suite/pts-core/objects/pts_web_socket.php on line 38
Launching Browser
(process:28177): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Press [ENTER] to kill server...What am I missing?
Last edited by klenamenis (2015-02-17 23:25:54)
Offline
My issues stay unsolved so far. I tried installing the missing json extension via pecl:
$ pacman -S php-pear
[... installation successful ...]
$ sudo pecl install json
WARNING: "pear/json" is deprecated in favor of "channel://http://www.php.net/json/json"
downloading json-1.2.1.tgz ...
Starting to download json-1.2.1.tgz (17,780 bytes)
......done: 17,780 bytes
11 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
ERROR: `phpize' failedThe json tarball can be found in
$ ls -R /tmp/pear
/tmp/pear:
cache download temp
/tmp/pear/cache:
13d082be9cd1777e8e2165ea90b51fe3rest.cachefile 9dd32ea72a0989593085962b5cfb0a8crest.cachefile
13d082be9cd1777e8e2165ea90b51fe3rest.cacheid 9dd32ea72a0989593085962b5cfb0a8crest.cacheid
60058f6354f3860b2d1970ccb6d35036rest.cachefile e1fada97e37d0e7de95b9d1f30794109rest.cachefile
60058f6354f3860b2d1970ccb6d35036rest.cacheid e1fada97e37d0e7de95b9d1f30794109rest.cacheid
/tmp/pear/download:
json-1.2.1.tgz
/tmp/pear/temp:I could find an old thread from 2012 where someone experienced the very same problem, it remained unanswered. Does anyone know how to fix this?
Offline
The version you installed from the AUR is orphaned and hasn't been updated in quite awhile. Have you tried just using the version in the community repo?
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
I installed the community version first, same error. Although the AUR package is orphan, it's a git package featuring the latest version of PTS.
Offline
If you comment out the open_basedir setting in php.ini, then the test suite should work. I had the same error as you and this worked.
However, I don't know if this is the correct way to fix this issue or not. I have not been able to find anything about open_basedir in the phoronix documentation, even though phoronix itself refers me there. Hopefully somebody else can clarify this problem/possibly solution. If anything, you can temporarily comment out open_basedir, do what you want to do with phoronix, then uncomment it.
Last edited by nullified (2015-02-28 18:10:19)
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
Some tests are already working, for example c-ray. Uncommenting the open_basedir line in /etc/php/php.ini didn't fix or change anything, it still shows the above mentioned error.
Offline
Don't uncomment the open_basedir, try commenting it out. Was it already commented out?
"We may say most aptly, that the Analytical Engine weaves algebraical patterns just as the Jacquard-loom weaves flowers and leaves." - Ada Lovelace
Offline
Pardon me, it was active, uncommented. I then commented it out and it wouldn't fix it. Now it's uncommented as usual.
Offline
Try uncommenting posix.so, sockets.so sqlite3.so on php.ini. It worked for me. Found on https://github.com/phoronix-test-suite/ … /issues/44
Offline