HaschekSolutions / cryptotrader

This is an experimental trading bot framework written in PHP. It may contain bugs and should not be trusted with much money
Other
143 stars 49 forks source link

Call to undefined function curl_init() #4

Closed lbzt closed 6 years ago

lbzt commented 6 years ago

Hello, i just tried to run command php /home/pi/cryptotrader/examples/account_info.php but i get the following error : PHP Fatal error: Call to undefined function curl_init() in /home/pi/cryptotrader/gdax.php on line 197

Could you please help me? Regards

geek-at commented 6 years ago

You need the php extension "curl" to be active.

On Windows: edit the php.ini and add extension=ext/php_curl.dll where the extensions are

On Linux (debian based): apt-get install php5-curl or if you have php 7.1 apt-get install php7.1-curl. If you can't find it use apt-cache search php curl that should show you the right package to install

On all other systems also look into the php.ini and load the extensions php_curl

lbzt commented 6 years ago

Thanks i installed the extension and now it's working propely. Regards