本文介绍了sh:0:getcwd()失败:引用的驱动器上没有这样的文件或目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在Ubuntu 12中编译ARM代码.
I am trying to compile ARM code in Ubuntu 12.
当我将代码放在本地目录中时,一切工作正常.
Everything is working fine when I put the code in the local directory.
但是当我将代码放在引用的安装目录中时,会出现错误:
But when I put the code in cited mount directory error shows up:
making testXmlFiles
sh: 0: getcwd() failed: No such file or directory
ARM Compiling xxxxx.c
sh: 0: getcwd() failed: No such file or directory
这是我在fstab中的设置
Here is my setting in fstab
//10.0.0.1/data /mnt/data cifs auto,noserverino,credentials=/root/.smbcredentials,file_mode=0777,dir_mode=0777,uid=user,gid=users,noperm 0 0
这是怎么回事?是什么原因导致此错误?
What is going on here? What could cause this error?
推荐答案
此错误通常是由从不再存在的目录中运行命令引起的.
This error is usually caused by running a command from a directory that no longer exist.
尝试更改目录,然后重新运行命令.
Try changing your directory and re-run the command.
这篇关于sh:0:getcwd()失败:引用的驱动器上没有这样的文件或目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!