0

我正在尝试通过ctools-installer将CTools安装到biserver-ce-4.8.0-stable中,但它总是以同样的方式失败。我 cd 进入biserver-ce-4.8.0-stable,然后在那里运行,比如说,安装 CDF:

sh /home/andy/ctools-installer.sh -s pentaho-solutions -w tomcat/webapps/pentaho -c cdf -y

它下载 cdf,但是当它尝试安装时,显示如下:

unzip: cannot find or open .tmp/dist/pentaho-cdf-+([0-9.]).zip, .tmp/dist/pentaho-cdf-+([0-9.]).zip.zip or .tmp/dist/pentaho-cdf-+([0-9.]).zip.ZIP.

完整的跟踪在这里:

andy@GDAI-Laptop ~/biserver-ce $ sh /home/andy/ctools-installer.sh -s pentaho-solutions -w tomcat/webapps/pentaho -c cdf -y
/home/andy/ctools-installer.sh: 199: /home/andy/ctools-installer.sh: shopt: not found

Downloading files

Downloading CDF...--2017-08-25 11:45:12--  http://ctools.pentaho.com/files/cdf/15.10.26/4.x/dist.zip    
    The file is already fully retrieved; nothing to do.    
Done    
Installing files    
unzip:  cannot find or open .tmp/dist/pentaho-cdf-+([0-9.]).zip, .tmp/dist/pentaho-cdf-+([0-9.]).zip.zip or .tmp/dist/pentaho-cdf-+([0-9.]).zip.ZIP.

No zipfiles found.
unzip:  cannot find or open .tmp/dist/pentaho-cdf-samples-+([0-9.])*zip, .tmp/dist/pentaho-cdf-samples-+([0-9.])*zip.zip or .tmp/dist/pentaho-cdf-samples-+([0-9.])*zip.ZIP.

No zipfiles found.
cleanup

Done!

有什么建议吗?

提前致谢

4

1 回答 1

0

嗯,问题解决了!问题是我用sh运行脚本,它本来是用bash运行的,所以shopt不起作用。

于 2017-08-25T17:39:05.560 回答