在Raspberry Pi 3 Model B Plus上通过script安装Docker
升级到PHP7.4导致的支付宝回调失败
环境
- laravel
- Omnipay\Omnipay
- lokielse/omnipay-alipay
今天把系统php版本升级至7.4后,有用户反馈充值后未到账,遂进行了漫长的debug。
HyperLPR on Raspberry Pi
HyperLPR on Raspberry Pi
|
1 |
python -m pip install hyperlpr |
解决:ModuleNotFoundError: No module named ‘cv2’
|
1 |
pip3 install opencv-python |
解决:ImportError: libopenjp2.so.7: cannot open shared object file: No such file or directory
|
1 |
apt-get install libopenjp2-7 |
解决:ImportError: libImath-2_2.so.23: cannot open shared object file: No such file or directory
|
1 |
apt install libilmbase23 |
解决:ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory
|
1 |
apt install libopenexr-dev |
解决:ImportError: libavcodec.so.58: cannot open shared object file: No such file or directory
|
1 |
apt-get install python-opencv |
在Debian中使用composer全局程序
编辑文件
|
1 |
nano /etc/profile |
将 $HOME/.config/composer/vendor/bin 添加至PATH中
|
1 2 3 4 5 6 7 8 9 |
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1)) # and Bourne compatible shells (bash(1), ksh(1), ash(1), ...). if [ "`id -u`" -eq 0 ]; then PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.config/composer/vendor/bin" else PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games" fi export PATH |
运行Laravel
|
1 2 3 4 5 |
composer global require laravel/installer laravel new example-app php artisan serve |
GB28181在线监控平台测试
搭建一套测试环境用于测试海康摄像机的28181推流功能