答案 0 :(得分:2)
您的系统缺少必需的php扩展名。
运行以下命令为laravel安装所需的php扩展。 (这里我正在使用apt-get编写即时消息,因为我正在使用ubuntu,必须根据您的Linux发行版更改此设置)
private void sp_DataReceived(object sender, SerialDataReceivedEventArgs e) // Receive data event callback
{
int no_bytes;
no_bytes = sp.BytesToRead; // get num bytes from serial port buffer
if ((no_bytes == 14 || no_bytes == 28) && !_start_log_flag) // check if status frame\s (14 bytes each) once logging ignore status frames
{
byte[] _rx_data = new byte[no_bytes]; // create array for data
sp.Read(_rx_data, 0, no_bytes); // get status frame\s from serial buffer
decode_status(_rx_data, no_bytes); // decode & process status frame\s
}
else if ((no_bytes > 25 && no_bytes < 4097) && _live_stream) // check for data frames (26 bytes each)
{
_start_log_flag = true; // now logging
byte[] _rx_data1 = new byte[no_bytes]; // create array for data
int temp = sp.Read(_rx_data1, 0, no_bytes); // read data frames from comms buffer
ms.Seek(0, SeekOrigin.End); // ensure orign at the end of memory stream
ms.Write(_rx_data1, 0, _rx_data1.Length); // add data to memory stream
}
else
{
sp.DiscardInBuffer(); // jibberish clear buffer
}
}
请参见here中针对ubuntu的其他php扩展,只需根据需要进行安装即可。
答案 1 :(得分:0)
更改组权限
sudo chown -R ngothanhtan /home/ngothanhtan/.composer/cache/files/