请问是直接复制粘贴代码进shell吗?得到这样的结果,没成功。
[root@Sean ~]# cd /www/server/php/74/src/ext/fileinfo
-bash: cd: /www/server/php/74/src/ext/fileinfo: No such file or directory
[root@Sean ~]# /www/server/php/74/bin/phpize
Cannot find config.m4.
Make sure that you run '/www/server/php/74/bin/phpize' in the top level source directory of the module
[root@Sean ~]# ./configure --with-php-config=/www/server/php/74/bin/php-config
-bash: ./configure: No such file or directory
[root@Sean ~]# make && make install
make: *** No targets specified and no makefile found. Stop.
[root@Sean ~]# echo -e "extension = /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so" >> /www/server/php/74/etc/php.ini
[root@Sean ~]# /etc/init.d/php-fpm-74 restart
Gracefully shutting down php-fpm . done
Starting php-fpm [11-Mar-2022 22:58:24] NOTICE: PHP message: PHP Warning: PHP Startup: Unable to load dynamic library '/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so' (tried: /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so (/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so: cannot open shared object file: No such file or directory), /www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902//www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so.so (/www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902//www/server/php/74/lib/php/extensions/no-debug-non-zts-20190902/fileinfo.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
done
[root@Sean ~]# |