我试图在我的计算机(运行Ubuntu 18.04 LTS)上安装Genie,但是我被困在一段代码上。当我尝试检查程序或
的依赖项时,我向您发送错误消息./ configure
但是,出现以下错误:
p:~/Downloads/GENIE-Generator_v2.8.6$ ./configure
Bareword found where operator expected at ./configure line 62, near "$/Downloads"
(Missing operator before Downloads?)
Bareword found where operator expected at ./configure line 71, near "$/Downloads"
(Missing operator before Downloads?)
Unquoted string "root" may clash with future reserved word at ./configure line 71.
Unquoted string "data" may clash with future reserved word at ./configure line 75.
Unquoted string "banner" may clash with future reserved word at ./configure line 75.
Unquoted string "txt" may clash with future reserved word at ./configure line 75.
Unquoted string "configure" may clash with future reserved word at ./configure line 85.
syntax error at ./configure line 62, near "$/Downloads"
syntax error at ./configure line 71, near "$/Downloads"
Execution of ./configure aborted due to compilation errors.
在配置文件中,相应的行为:
$GENIE =$/Downloads/GENIE-Generator_v2.8.6; (ln 62)
$ROOTSYS =$/Downloads/root (ln 71)
$BANNER_FILE = $GENIE/data/banner/BANNER.txt; (ln 75)
。
我是该社区的新手,所以我对这个社区或语言的礼节和准则不了解很多。我对语言(Perl)和操作系统(Ubuntu)的了解非常有限,因此恐怕我需要逐步解决方案。如果您能提供给我,我将不胜感激。
预先感谢
答案 0 :(得分:2)
我找到了这个GENIE-Generator程序,并下载了(版本较旧)2.8.6。配置脚本的第62、71和75行与您引用的内容不匹配,尝试运行该脚本时也不会收到错误消息。
出于某种原因,您的副本已从股票来源压缩包中以某种方式进行了更改,并更改为无效的perl。
我要做什么:删除整个内容,然后重新下载源代码的新副本(除非出于某种原因您被锁定在旧版本中,否则我建议您使用当前版本),然后使用新的干净副本。
$ rm -rf GENIE-Generator_v2.8.6 GENIE-Generator_v2.8.6.tar.gz
$ wget http://www.hepforge.org/archive/genie/GENIE-Generator_v2.8.6.tar.gz
$ tar xzf GENIE-Generator_v2.8.6.tar.gz
$ cd GENIE-Generator_v2.8.6
$ ./configure
(根据需要调整文件名)