Score:0

How to install PHP Trader PECL using Linux

gb flag

I'm using Dreamhost VPS server and I have SSH access but not sudo commands.

I' have tried to install the PHP Trader Pecl library

[psxxxxxx]$ wget "https://pecl.php.net/get/trader-0.5.1.tgz"
[psxxxxxx]$ tar zxvf trader-0.5.1.tgz
[psxxxxxx]$ cd trader-0.5.1

[psxxxxxx]$ /usr/local/php80/bin/phpize
[psxxxxxx]$ export PKG_CONFIG_PATH=$HOME/local/lib/pkgconfig
[psxxxxxx]$ ./configure --prefix=$HOME/local --with-trader-0.5.1=$HOME/local --with-php-config=/usr/local/php74/bin/php-config
[psxxxxxx]$ make

[psxxxxxx]$ cd ~/.php/8.0
[psxxxxxx]$ mkdir extensions
[psxxxxxx]$ cp ~/trader-0.5.1/modules/trader.so extensions
[psxxxxxx]$ echo "extension = ~/.php/8.0/extensions/trader.so" >> phprc

After this it look like installed.

But when i checked:

php -m | grep trader 
//or 
phpinfo();

So not showing anything.

My Server/PHP information:

'./configure' 
'--prefix=/usr/local/php80' 
'--datadir=/usr/local/php80/share' 
'--localstatedir=/usr/local/php80/var' 
'--without-pear' 
'--with-config-file-path=/etc/php80' 
'--with-config-file-scan-dir=/etc/php80/conf.d' 
'--with-zend-vm=GOTO' 
'--enable-cgi' 
'--enable-fpm' 
'--enable-hash' 
'--enable-intl' 
'--enable-json' 
'--enable-libxml=shared' 
'--enable-bcmath=shared' 
'--enable-calendar=shared' 
'--enable-ctype=shared' 
'--enable-dom=shared' 
'--enable-exif=shared' 
'--enable-fileinfo=shared' 
'--enable-filter' 
'--enable-ftp=shared' 
'--enable-gd=shared' 
'--with-jpeg' 
'--with-xpm' 
'--with-freetype' 
'--enable-mbstring' 
'--enable-mbregex' 
'--enable-mbregex-backtrack' 
'--enable-opcache' 
'--enable-pcntl=shared' 
'--enable-pdo' 
**'--enable-phar=shared'**
'--enable-posix=shared' 
'--enable-session=shared' 
'--enable-shmop=shared' 
'--enable-simplexml=shared' 
'--enable-soap=shared' 
'--enable-sockets=shared' 
'--enable-sysvmsg=shared' 
'--enable-sysvsem=shared' 
'--enable-sysvshm=shared' 
'--enable-tokenizer=shared' 
'--enable-wddx=shared' 
'--enable-xml=shared' 
'--enable-xmlreader=shared' 
'--enable-xmlwriter=shared' 
'--with-gd=shared' 
'--with-jpeg-dir=/usr' 
'--with-png-dir=/usr' 
'--with-zlib-dir=/usr' 
'--with-xpm-dir=/usr' 
'--with-freetype-dir=/usr' 
'--with-webp' 
'--with-openssl=shared' 
'--with-kerberos' 
'--with-pcre-regex' 
'--without-pcre-jit' 
'--with-sqlite3' 
'--with-zlib=shared' 
'--with-bz2=shared' 
'--with-curl=shared' 
'--with-gettext=shared' 
'--with-gmp=shared' 
'--with-mhash=shared' 
'--with-iconv=shared' 
'--with-imap=shared' 
'--with-imap-ssl' 
'--with-mysql-sock=/No-MySQL-hostname-was-specified' 
'--with-mysqli=shared,mysqlnd' 
'--with-pdo-mysql=shared,mysqlnd' 
'--with-pdo-pgsql=shared' 
'--with-pdo-sqlite' 
'--with-pgsql=shared' 
'--with-pspell=shared' 
'--with-readline=shared' 
'--with-tidy=shared' 
'--with-xsl=shared' 
'--with-sodium' 
'--with-password-argon2=/usr' 
'--with-zip=shared'

Please anyone help me to install PHP Trader

cn flag
We do not support Unix. Only active Ubuntu versions; All Ubuntu use "sudo" for elevated permissions though. Are you not using Ubuntu? For the remainder of the question: there is nothing to go on for us. No error, no notice about anything going wrong. Seems perfectly fine to me what you post in the question.
Alicensha avatar
gb flag
Thank you for comment, Yes I have did it that what I mentioned above but still phpinfo not showing PECL module and I have use the trader code to create BBands but not working mean not recognize the trader function/class. I don't know what to do.
Alicensha avatar
gb flag
Actually I must need to do this in my website so if you have any alternative idea i will thankful: https://www.php.net/manual/en/function.trader-bbands.php
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.