FreeBSD的第一步:試圖運行我的安裝腳本。需要快速幫助:在FreeBSD中運行腳本
# ls configure # file configure configure: Bourne-Again shell script text executable # ./configure ./configure: Command not found # configure configure: Command not found
什麼是錯,我該如何執行這個腳本?
FreeBSD的第一步:試圖運行我的安裝腳本。需要快速幫助:在FreeBSD中運行腳本
# ls configure # file configure configure: Bourne-Again shell script text executable # ./configure ./configure: Command not found # configure configure: Command not found
什麼是錯,我該如何執行這個腳本?
是否安裝了bash?如果不使用FreeBSD Ports來安裝它。使用where bash
找出。
真的,bash沒有安裝。我想我需要在超級用戶中詢問詳細信息。謝謝。 – 2010-03-23 13:24:25
使用武力盧克:)
# pkg_add -r bash
或許它,你的配置腳本沒有相應的執行權限。試着投:
chmod 777 configure
如果它的工作原理,它固定到
chmod 764 configure
configure
腳本是超便攜的shell腳本。這裏沒有必要打屁股。問題在別的地方。
配置腳本的第一行是什麼?也許一個CR/LF偷偷進來,這是一個常見的原因,一個完全誤導性的錯誤信息說腳本沒有找到,當時是沒有找到的解釋器。
請試試這個腳本的/bin/sh ./configure
第一行(#!/usr/bin/bash
,我想)應改爲#!/usr/local/bin/bash
。 當然,你應該安裝shell/bash端口。
安裝使用
pkg add bash
或
make -C /usr/ports/shells/bash install clean
通過默認的FreeBSD bash的包裝內附送的tcsh和POSIX兼容的FreeBSD SH
在更早的FreeBSD系統,你需要做
rehash
,然後才能運行它。
'configure'的內容是什麼? – ghostdog74 2010-03-23 13:14:23