在linux /sbin/dldconfig.real上安装OpenCV-Python的错误:/USR/LIB32/NV



我一直在遵循本教程以安装openCV和python:

https://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-python-2-7-7-on-ubuntu/#comment-441393

唯一的区别是我试图安装OpenCV 3.3.1而不是3.0.0

我在带有Ubuntu的笔记本电脑上运行14.04 AN I7和NVIDIA GTX950M

问题是当我执行命令ldconfig

$ sudo make install
$ sudo ldconfig

我收到以下消息:

/sbin/ldconfig.real: /usr/lib/nvidia-384/libEGL.so.1 is not a symbolic link
/sbin/ldconfig.real: /usr/lib32/nvidia-384/libEGL.so.1 is not a symbolic link

,所以我找到了解决问题的解决方案:

来源:https://askubuntu.com/questions/900285/libegl-so-1-is-is-is-not-a-symbolic-link @muru @muru @gerard @gerard tromp

以下是Noisy_botnet解决方案的易于使用的版本。它 促进重复任何更新的过程。

创建一个shell脚本,即粘贴代码bellow bellow文本文件,然后用.sh扩展名保存。更改文件的执行权限,即,转到终端中文件的位置并执行以下命令$ sudo chmod 744 nameofthefieleyoucreated.sh执行以下命令$ sudo ./nameofthefileyoucreated.sh

#! /bin/sh
#
# find the file in /usr/lib
LIBEGL=`find /usr/lib/nvidia* -name libEGL.so.* | egrep "[0-9][0-9]*.[0-9][0-9]*$"`
LIBEGL_LINK=`echo $LIBEGL | sed 's/[0-9][0-9]*.[0-9][0-9]*$/1/'`
printf "nnThe following commands will be executed:n+++++++++++++++++++++++++++++++++++++++n"
printf "mv $LIBEGL_LINK ${LIBEGL_LINK}.orignln -s $LIBEGL $LIBEGL_LINKnn"
while true; do
    read -p "Do you wish to perform these commands?  " yn
    case $yn in
        [Yy]* ) mv $LIBEGL_LINK ${LIBEGL_LINK}.orig; ln -s $LIBEGL $LIBEGL_LINK ; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done
# find the file in /usr/lib32
LIBEGL=`find /usr/lib32/nvidia* -name libEGL.so.* | egrep "[0-9][0-9]*.[0-9][0-9]*$"`
LIBEGL_LINK=`echo $LIBEGL | sed 's/[0-9][0-9]*.[0-9][0-9]*$/1/'`
printf "nnThe following commands will be executed:n+++++++++++++++++++++++++++++++++++++++n"
printf "mv $LIBEGL_LINK ${LIBEGL_LINK}.orignln -s $LIBEGL $LIBEGL_LINKnn"
while true; do
    read -p "Do you wish to perform these commands?  " yn
    case $yn in
        [Yy]* ) mv $LIBEGL_LINK ${LIBEGL_LINK}.orig; ln -s $LIBEGL $LIBEGL_LINK ; break;;
        [Nn]* ) break;;
        * ) echo "Please answer yes or no.";;
    esac
done

最新更新