x64 시스템의 우분투 14.04에 mongo PHP 드라이버를 설치하려고했습니다. 이 튜토리얼을
사용 했고 pecl을 설치하여 php 드라이버를 설치하려고 할 때 설치가 끝날 때 오류가 발생했습니다.
sudo apt-get install php5-dev php5-cli php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-pear is already the newest version.
php5-cli is already the newest version.
php5-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 85 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
install-info
dpkg 구성을 확인하려고 시도한 결과 다음과 같은 결과가 발생했습니다.
xxx:~$ sudo dpkg --configure -a
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
install-info
시냅스 패키지 관리자를 통해서도 패키지를 제거하려고하면 작동하지 않습니다.
xxx:~$ sudo apt-get remove --purge php5-dev php5-cli php-pear
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
php5
The following packages will be REMOVED:
php-pear* php5-cli* php5-dev* php5-readline* pkg-php-tools*
The following NEW packages will be installed:
php5
0 upgraded, 1 newly installed, 5 to remove and 85 not upgraded.
1 not fully installed or removed.
Need to get 0 B/1,302 B of archives.
After this operation, 15.4 MB disk space will be freed.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: unexpected EOF while looking for matching `"'
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 2
Errors were encountered while processing:
install-info
install-info의 내용
#!/bin/sh
#
# Wrapper to the GNU's install-info, to be compatible with the one that used to
# be packaged by dpkg on Debian.
#
# written by Norbert Preining, this is not copyrightable ;-)
#
set -e
if [ -z "$DPKG_RUNNING_VERSION" ] ; then
# it seems we are running from outside a maintainer script, so give a
# warning and call ginstall-info without anything else
echo "This is not dpkg install-info anymore, but GNU install-info" >&2
echo "See the man page for ginstall-info for command line arguments" >&2
ginstall-info "$@"
else
# we are running from a maintainer script, simply ignore the call
# since we have trigger support and people should rebuild their
# package with new debhelper which does not add calls to install-info
# Do not complain if called with "--remove" or "--remove-exactly",
# as these are used in old packages' prerm scripts (see #546165)
while [ -n "$1" ]; do
case "$1" in
--remove|--remove-exactly)
exit 0
;;
*)
shift
;;
esac
done
echo "Ignoring install-info called from maintainer script" >&2
echo "The package $DPKG_MAINTSCRIPT_PACKAGE should be rebuilt with new debhelper to get trigger support" >&2
fi
/ etc / environment가 잘못되었습니다.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" JAVA_HOME = ":usr/lib/jvm/java-7-oracle
다음과 같아야합니다.
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
JAVA_HOME="/usr/lib/jvm/java-7-oracle"
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다