KenHorse Posted October 25, 2021 Share Posted October 25, 2021 As the title says. I'm trying to install the dio-0.2.0 package (Raspian Buster) and first did a pecl list-all and the above was returned Quote Link to comment Share on other sites More sharing options...
requinix Posted October 25, 2021 Share Posted October 25, 2021 Have you tried troubleshooting this on your own? Quote Link to comment Share on other sites More sharing options...
KenHorse Posted October 25, 2021 Author Share Posted October 25, 2021 Yes, I've found no answers via several internet searches Quote Link to comment Share on other sites More sharing options...
KenHorse Posted October 25, 2021 Author Share Posted October 25, 2021 I even searched this forum Quote Link to comment Share on other sites More sharing options...
KenHorse Posted October 27, 2021 Author Share Posted October 27, 2021 (edited) Ok, finally figured out what I needed to do in order to install the dio.so extension and that succeeded. Updated both php.ini (web and cli) to load extension dio.so I created a test file with the following contents: $fd = dio_open('/dev/ttyUSB0', O_RDWR | O_NOCTTY | O_NONBLOCK); dio_close($fd); Now, when I run it, I receive the following error: PHP Warning: PHP Startup: Unable to load dynamic library 'dio.so[PHP]' (tried: /usr/lib/php/20180731/dio.so[PHP] (/usr/lib/php/20180731/dio.so[PHP]: cannot open shared object file: No such file or directory), /usr/lib/php/20180731/dio.so[PHP].so (/usr/lib/php/20180731/dio.so[PHP].so: cannot open shared object file: No such file or directory)) in Unknown on line 0 I have checked /usr/lib/php and it IS there: root@mypi:/var/www/html/WebRCP# ls /usr/lib/php/20180731/ build curl.so fileinfo.so iconv.so mysqlnd.so phar.so simplexml.so sysvshm.so xmlreader.so bz2.so dio.so ftp.so json.so opcache.so posix.so sockets.so tokenizer.so xmlwriter.so calendar.so dom.so gd.so mbstring.so pdo.so readline.so sysvmsg.so wddx.so xsl.so Edited October 27, 2021 by KenHorse Quote Link to comment Share on other sites More sharing options...
requinix Posted October 27, 2021 Share Posted October 27, 2021 No, "dio.so[PHP]" is not in there. "dio.so" is, but that's not the file PHP is trying to load... Quote Link to comment Share on other sites More sharing options...
KenHorse Posted October 27, 2021 Author Share Posted October 27, 2021 (edited) It's trying literally to load dio.so[PHP]??? Edited October 27, 2021 by requinix bbcode parsing getting in the way Quote Link to comment Share on other sites More sharing options...
requinix Posted October 27, 2021 Share Posted October 27, 2021 Sure looks like it, yeah. See how many times it repeats the "PHP"? Check the php.ini you edited. Quote Link to comment Share on other sites More sharing options...
KenHorse Posted October 27, 2021 Author Share Posted October 27, 2021 Craziest damn thing. The installer added the extension=dio.so at the beginning of php.ini, hence the bracketed term afterwards Thanks for opening my eyes Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.