Full REPL not supported

I get an error when trying to use the team of wizards. 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:

 Full REPL not supported. Falling back to simple shell. 

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

After receiving the warning, I can enter a new user, but he will not save it in the database. I'm not sure what REPL is.

+7
php terminal laravel
source share
4 answers

If you're 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 the repository GPG key:

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

Update Package Index:

 sudo apt-get update 

Install the debp5-readline deb package:

 sudo apt-get install php5-readline 
+5
source share

One or more readline pcntl and pcntl . You need to compile PHP with the appropriate configuration options to enable it.

Here are the instructions:

Note that posix functions are enabled by default.

+1
source share

Sometimes pcntl functions are disabled on some distributions, so you should

Find the cli php.ini

 php --ini 

Edit this php.ini , usually you will need

 sudo gedit /etc/php5/cli/php.ini 

or

 sudo vim /etc/php5/cli/php.ini 

and comment out the line starting with

 ; disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid,... 

You do not have to comment on everything; you can simply enable pcntl functions by removing them from this line, but if it is a development window, you can simply enable everything.

+1
source share

I personally use MAMP and also rely on the PHP version of MAMP for the CLI. When I got into this problem, I found that the Redline and PCNTL extensions were not part of the MAMP PHP distribution.

I wrote an article about how I fixed the problem, as well as a link to download two extensions that I had to compile from the source.

http://adampatterson.ca/blog/2014/10/laravel-tinker-boris-mamp-os-x-yosemite/

+1
source share

All Articles