mevdschee / wped

Wikipedia client for the command line
39 stars 2 forks source link

PHP Fatal error (Raspian / Debian) #3

Closed c3m0 closed 5 years ago

c3m0 commented 7 years ago

Hi guy(s) !

I were looking for a simple CLI Wikipedia client, and found yours. Running a Raspberry I'm getting an exception on any search. I'm a simple user but I'm putting some version info and error codes down below for your to see.

user@raspy / $ wped America
PHP Fatal error:  Call to undefined function curl_init() in /usr/bin/wped on line 41

user@raspy / $ php --version
PHP 5.4.45-0+deb7u8 (cli) (built: Mar 28 2017 05:41:27)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

user@raspy / $ elinks --version
ELinks 0.12pre5
Built on Nov  7 2012 09:27:49

Features:
Standard, IPv6, gzip, bzip2, UTF-8, Periodic Saving, Viewer (Search
History, Timer, Marks), Cascading Style Sheets, Protocol
(Authentication, File, CGI, Finger, FSP, FTP, HTTP, URI rewrite, User
protocols), SSL (GnuTLS), MIME (Option system, Mailcap, Mimetypes
files), LED indicators, Bookmarks, Cookies, Form History, Global
History, Scripting (Perl), Goto URL History

Any idea what could be causing this?

mevdschee commented 7 years ago

You should:

sudo apt-get install php-curl

The package may also be named php7-curl or php5-curl, depending on your distro/version.

mevdschee commented 5 years ago

Closing due to inactivity.