永久黄网站色视频免费直播,yy6080三理论日本中文,亚洲无码免费在线观看视频,欧美日韩精品一区二区在线播放

Board logo

標(biāo)題: [求助] 安裝mysqli報(bào)錯(cuò),shtool does not exist or is not executable. [打印本頁(yè)]

作者: lb1217    時(shí)間: 2015-6-19 14:31     標(biāo)題: 安裝mysqli報(bào)錯(cuò),shtool does not exist or is not executable.

我按照
  1. wget -c http://down.wdlinux.cn/in/mysqli_ins.sh
  2. chmod 755 mysqli_ins.sh
  3. ./mysqli_ins.sh
復(fù)制代碼
這個(gè)執(zhí)行,但是報(bào)錯(cuò)。
  1. php-5.2.17/INSTALL
  2. php-5.2.17/CODING_STANDARDS
  3. php-5.2.17/header
  4. php-5.2.17/generated_lists
  5. php-5.2.17/vcsclean
  6. Configuring for:
  7. PHP Api Version:         20041225
  8. Zend Module Api No:      20060613
  9. Zend Extension Api No:   220060519
  10. shtool at '/tmp/php-5.2.17/ext/mysqli/build/shtool' does not exist or is not executable.
  11. Make sure that the file exists and is executable and then rerun this script.

  12. ./mysqli_ins.sh: line 37: ./configure: No such file or directory
  13. make: *** No targets specified and no makefile found.  Stop.
復(fù)制代碼
我查了
shtool' does not exist or is not executable.

提示
  1. Remove noexec flag from /var/tmp directory use the following command

  2. mount -o remount,exec /var/tmp/
  3. You can use the same command to add the noexec flag back

  4. mount -o remount,noexec /var/tmp/
復(fù)制代碼
但是執(zhí)行報(bào)錯(cuò)。
[root@iZ62vu79juaZ ~]# mount -o remount,exec /var/tmp/
mount: can't find /var/tmp in /etc/fstab or /etc/mtab

然后就查不到資料了。
作者: fengsilc    時(shí)間: 2015-9-16 12:50

同樣的問(wèn)題。 centos 5

請(qǐng)教解決方案。謝謝
作者: fengsilc    時(shí)間: 2015-9-16 15:44

發(fā)現(xiàn)有人提到:

Hi, slowbro here (from the aforementioned blog). The reason you're getting this error is because you're missing the package php-devel package. Try running yum install php-devel first.

于是執(zhí)行:yum install php-devel

仍然無(wú)效
作者: fengsilc    時(shí)間: 2015-9-16 17:12

Trouble Shooting: “PECL Install Doesn’t Work”





   


































  
Some users prefer to mount their /tmp directory as noexec for security reasons, but we’ve seen that this can cause a problem for PECL installs. Pointing the PECL temp_dir to a new path gets around this problem.

Now, this isn’t strictly a LiteSpeed issue, but we thought some might find it useful to explore: Whether or not /tmp should be mounted as noexec is a matter of debate. A number of sources suggest that every server running Linux should mount /tmp as nonexecutable to prevent SUID attacks, but some scoff that this only provides false security. No matter what, any security feature is going to have some weaknesses, and it is understandable if a lot of users want to add the noexec option. Most of the time, having /tmp as noexec shouldn’t cause any problems, but recently a user reported this error while trying to do a PECL install for LSPHP (though this would be the same for PHP):

root@cptest [/usr/local/bin]# ./pecl install -n bbcode
downloading bbcode-1.0.2.tgz …
Starting to download bbcode-1.0.2.tgz (46,961 bytes)
………….done: 46,961 bytes
7 source files, building
running: phpize
Configuring for:
PHP Api Version:         20100412
Zend Module Api No:      20100525
Zend Extension Api No:   220100525
shtool at ‘/tmp/pear/bbcode/build/shtool’ does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: `phpize’ failed

Now, the obvious “solution” to this problem is to make /tmp executable (the command mount -o remount,exec /tmp would work), but that disables any extra security we were hoping to get in the first place. A more appropriate workaround is to point PECL’s temp_dir to a partition or path that allows execution:

mkdir /root/tmp
pecl config-set temp_dir /root/tmp
or
pear config-set temp_dir /root/tmp

(There is a known bug where pecl config-set does not work but pear config-set does. If this is the case for you, simply use the PEAR config command. PECL will use PEAR when doing the install.)

This workaround preserves any security benefit from having /tmp set as noexec, but also allows PECL installs.

We’d love to hear any comments, questions, or criticisms. Cheers!
http://blog.litespeedtech.com/2013/04/05/trouble-shooting-pecl-install-doesnt-work/

這篇文章是解決另外一個(gè)軟件的類(lèi)似問(wèn)題的
作者: reverier    時(shí)間: 2015-10-6 08:31

今天也遇到問(wèn)題,我解決了,貼上解決辦法吧
官方的sh把文件下載到tmp了,似乎這里有權(quán)限問(wèn)題
下載sh后,用vim 修改下把  /tmp修改成/home

然后再運(yùn)行,ok完美了
作者: mh5720    時(shí)間: 2015-11-24 13:48

回復(fù) 5# reverier

OK.用你的方法解決了,修改一下mysqli_ins.sh 就行了。
作者: pmp4065    時(shí)間: 2017-6-19 02:33

回復(fù) 5# reverier


    確實(shí)是這個(gè)操作可以!
如果找不到的,先登陸服務(wù)器管理—在文件管理——目錄列表——/root/php-5.2.17/mysqli_ins.sh 打開(kāi)這個(gè)文件,修改大概33行的tmp  修改home保存后,重新mysqli的安裝即可成功!




歡迎光臨 WDlinux官方論壇 (http://www.fsowen.com/bbs/) Powered by Discuz! 7.2