笔者在执行./build_oai -I -w USRP时,到最后一步出现了问题
UHD在安装后,突然出现了如下语句
You do not have write permissions at the install location
build have failed
经查证,本语句为调用build_helper文件中如下代码块
install_usrp_uhd_driver() {
if [[ "$OS_DISTRO" == "ubuntu" ]]; then
# We move uhd-host apart because it depends on linux kernel version
# On newer kernels, it fails to install
$SUDO apt-get -y install uhd-host
fi
if [ -z $1 ]; then
#echo "292 add by wangcheng 20170718"
$SUDO uhd_images_downloader
else
$SUDO uhd_images_downloader -i $1
fi
}
时,该语句导致
SUDO uhd_images_downloader
而问题的原因在于他想写入的路径是没有权限的,即使加了sudo也不行
解决方法为在命令行中输入,给用户在这个目录中写东西的权限。
sudo chmod 777 /usr/share