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