Find path to cURL?
15,157
The /usr/bin/curl
commandline executable is not the same as the php-curl library.
Both link to libcurl.so
, the DLL/shared library which provides the functionality under the hood.
But you would need to install the curl package to get the CLI binary.
Related videos on Youtube
Author by
IMB
Updated on September 18, 2022Comments
-
IMB over 1 year
My
phpinfo();
shows cURL is installed on the server but when I use the command/usr/bin/curl
it returns/bin/sh: 1: /usr/bin/curl: not found
.Now when I type
which curl
, it doesn't return anything.Any ideas how to properly find path to cURL?
-
SpiderPig almost 6 yearsDid you try
whereis curl
? -
IMB almost 6 years@SpiderPig typing
whereis curl
returns:curl:
It doesn't seem to look like a path? -
glenn jackman almost 6 yearsNote that there are
curl
andlibcurl
packages. Perhaps libcurl is installed but curl itself is not. What doesapt list --installed | grep curl
show? -
IMB almost 6 yearsHmmm... it says this things are installed:
libcurl3/oldstable
php-curl/jessie
php5-curl/oldstable
php7.0-curl/jessie
-
IMB almost 6 years@glennjackman I went ahead and installed
curl
it does seem I've mistakenlibcurl
forcurl
. You can create an answer and I'll accept. -
Giacomo1968 over 4 yearsAs this answer states, the Curl library that PHP uses—and is reflected in
phpinfo()
—ha utterly nothing to do with the command line version of Curl. -
Giacomo1968 over 4 yearsI'm voting to close this question as off-topic because the question was self-solved a year or so ago as indicated in the comments: The user had to simply install the command line
curl
to get things working. They mistook the Curl library that PHP uses from command line Curl.
-