Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full REPL not supported

I get an error when trying to use artisan command tinker. For example I would like to add a user. In my terminal I type

$ php artisan tinker 

but when I enter it I get a warning saying:

Full REPL not supported. Falling back to simple shell. 

What could the problem be for this error? Is it my terminal, php, permissions or something else?

After I get the warning I can type to create new user but it doesn't save it to the database. I'm not sure what REPL is.

like image 211
zgames Avatar asked Dec 31 '13 18:12

zgames


1 Answers

If you are on debian like me this should work:

source: http://pkgs.org/debian-wheezy/dotdeb-i386/php5-readline_5.4.28-1~dotdeb.1_i386.deb.html

Add the following line to /etc/apt/sources.list:

deb http://packages.dotdeb.org/ wheezy all

Install GPG key of the repository:

wget http://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg

Update the package index:

sudo apt-get update

Install php5-readline deb package:

sudo apt-get install php5-readline
like image 119
Master Bee Avatar answered Nov 09 '22 16:11

Master Bee