執行Linux腳本,出現No Such file or directory異常
最近在學習Linux系統的腳本開發,在我編寫完標本的情況出現了以下的情況
這個時候出現了No Such file or directory 情況出現 ,提示文件不存在;
但是通過VIM命令訪問此腳本,是能夠進入此腳本的
這個時候我猜測,可能是由於編碼問題引起的,因為我在編寫此腳本的時候我是在Windos系統中使用nodpad++編寫(nodpad的編碼格式此時為ANSI);然後通過Secure連接至Linux服務器,進行粘貼。
我繼續在VIM編輯下通過:set ff? 發現編碼格式如下:
發現編碼格式為DOS,DOS中會存在不可見字符,會導致Linux執行失敗
這個時候我們可以通過:set ff=unix
執行Linux腳本,出現No Such file or directory異常
相關推薦
執行Linux腳本,出現No Such file or directory異常
退出 linux服務器 腳本開發 win 不存在 存在 src 字符 lin 最近在學習Linux系統的腳本開發,在我編寫完標本的情況出現了以下的情況 這個時候出現了No Such file or directory 情況出現 ,提示文件不存在; 但是通過VIM命令訪問此
解決“執行arm-linux-gcc命令,提示No such file or directory”的問題
今天在ubuntu14.04上安裝arm的交叉編譯器arm-linux-gcc,環境變數配置好以後,執行arm-linux-gcc命令,總提示No such file or directory。然後去arm-linux-gcc所在的目錄下,發現不缺少任何檔案。而且環境變數配
64位ubuntu無法安裝32位軟體,或者是執行32位.run等檔案,出現`no such file or directory`問題
64位系統是能安裝32位的應用軟體和程式的,出現問題,最大可能是沒有安裝 32位的依賴庫,或者是安裝的32位依賴庫不對。 linux一般都是在/etc/dpkg/dpkg.cfg.d/路徑下有相關的檔
shell腳本bad interpreter: No such file or directory
解決方法 pos 腳本 ret inter 原因 body 執行 test 腳本路徑正確,執行時報找不到文件錯誤 報錯原因: test.sh在windows編寫,windows的某些字符和Linux不一樣,導致在Linux執行失敗。 解決方法是: 在linux下新建test
arm-none-linux-gnueabi-gcc -v 出現: No such file or directory
太感謝了,我的也是這個問題 交叉編譯環境搭建後 arm-linux-gcc -v 顯示 No such file or directory 使用which命令可以找到,環境變數沒有問題,更詳細的描述問題就是which找到的命令所在的目錄下的所有命令都是同樣的問題。 果然問題的解決點就在我用的是64位系統
Linux執行.sh檔案,提示No such file or directory的問題的解決方法
今天遇到了個奇怪的問題,就是再linux中執行shell 死活載入不到/etc/profile 直接執行source /etc/profile 沒問題 但是在shell中執行就不行 查詢
Java 呼叫 FFMPEG 命令時用 url 作為輸入源,Linux 下出現 “no such file or directory” 問題的解決
Windows 下執行 ffmpeg 命令, D:/tools/ffmpeg/bin>ffmpeg.exe -i "某視訊檔案下載URL" -f flv D:/1.flv 可以成功直接將下載連結輸入源轉為 1.flv。
Linux下執行可執行檔案出現no such file or directory
有時在linux下執行可執行檔案***.sh出現erro: no such file or dierectory,解決步驟如下: (1)首先檢查路徑以及檔名是否正確; (2)確認是否有執行許可權; (3)檢查檔案格式是否正確,若為dos,需要修改為unix 方法:(3.1)
Linux 執行Python指令碼出現:No such file or directory
寫好了一個Python 指令碼後 準備在Linux上面執行。 使用的是 ./test.py 出現了 :No such file or directory 而在使用 python test.py 時卻是可以的。這個非常的讓人費解,於是刷了一下 stack over
Linux執行.sh檔案,提示No such file or directory錯誤
當你把startofbiz.sh用編輯器如記事本開啟後,修改一下再儲存,放回原來的路徑下,然後啟動就會報錯:No such file or directory . 原因是你開啟檔案是在windows環境下,儲存後CR/LF(回車/換行)與linux下不同。所以格式不同會報錯
hdfs dfs -ls後出現No such file or directory解決
原因是因為-ls預設目錄是在hdfs檔案系統的/user/使用者名稱(使用者名稱就命令列@符號前面的那個東西),但是你的hdfs系統內沒有這個資料夾,所以會顯示No such file or directory。 所以你需要在hdfs檔案系統內建立 [email protected
Linux 安裝pyspider 報錯“No such file or directory: 'curl-config”
During handling of the above exception, another exception occurred: Traceback (most recent call last)
Linux 指令碼 顯示 !/bin/bash No such file or directory 問題
經常用Notepad++ 編輯 shell指令碼,然後winscp傳到shell執行,經常出現如題所示的錯誤, 先cat -A 檔案路徑,發現結果如下圖 因為Windows下的編輯器在後面會產生\r\n的EOL,linux是\n,解決方法如下: 1、編輯,檔案格
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory
問題:[email protected]:/home/xvv/program/opencvDemo1# qmake -v qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or dir
qmake: could not exec ‘/usr/lib/x86_64-linux-gnu/qt4/bin/qmake’: No such file or directory 解決方案
昨天晚上,第一次用qt,但在編譯時,遇到上述的問題,然後在網上查詢了很多資料,感覺別說的都有道理,但還是不太懂,不過弄了一個多小時後,終於搞定了。 解決方法:首先找到qmake的可執行檔案路徑,我的路徑是/usr/lib/i386-linux-gnu/qt5/bin,在這裡我用的是qt5,我估計
NDK 編譯報錯arm-linux-androideabi-g++: error: CreateProcess: No such file or directory
Android編譯工程時提示:arm-linux-androideabi-g++: error: CreateProcess: No such file or directory錯誤。 解決方法: 步驟1: Android.mk 檔案修改, LOCAL_SHORT_C
mingw下用gcc編譯c檔案出現no such file or directory解決方法
c檔案直接拖進cmd時地址是對的,但gcc不認空格,所以要把路徑當做所有空格都去掉或改成“—”,這樣它就能直接發現檔案了,這時在cmd中編寫:gcc F:\new.c -o F:\new.exe ,就會出現new.e
Linux 安裝pyspider 報錯“No such file or directory: 'curl-config”
During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string&
Qt5編譯時出現 ---> No such file or directory錯誤解決辦法
解決辦法: 安裝libqt4-devsudo apt-get install libqt4-dev安裝完後開啟qtcreator, 在設定裡面新增qt4版本的qmake. 路徑在 /usr/bin/qmake-qt4. 新增完後把編譯環境那裡也改一改, 然後重新編譯就解
linux下/dev/dsp:No such file or directory解決方法
寫了一個需要通過dsp進行音訊操作的小程式,執行時卻提示/dev/dsp:No such file or directory $ls /dev目錄下並沒有dsp這個檔案解決方法很簡單: $sud