I compiled curl after cloning the repo using the following commands:
./buildconf
./configure --with-libssh2
make
sudo make install
However, after sudo make install, if
- I run
curl -V
, I get: bash:/usr/bin/curl: No such file or directory
. - I run
/usr/local/bin/curl -V
, I get:/usr/local/bin/curl: symbol lookup error: /usr/local/bin/curl: undefined symbol: curl_mime_type
.
I tried getting around this by adding the path to curl/src to my PATH variable, and that made the curl command work from the terminal for my user. But if I try installing php-curl
, apache understandably doesn't see curl and installs a different one.
Any ideas on how I can fix this?
Edit: The other post referred to in the comments was asking where to find the executable after compiling. That part was answered. But I still can't get curl to work without adding an entry to my PATH variable, which doesn't seem right. That's the part I'm trying to figure out now.