简体   繁体   English

rvm:尝试在运行SME Server的计算机上安装时出现语法错误

[英]rvm: Syntax error when I'm trying to install on a machine running SME Server

I'm trying to set up a Rails server to run an app that I just wrote on a box running SME Server 7.4. 我试图设置一个Rails服务器来运行我刚刚在运行SME Server 7.4的盒子上编写的应用程序。

I've installed curl , zlib , and readline , but when I run the rvm script, I get this output: 我已经安装curlzlibreadline ,但是当我运行rvm脚本时,得到以下输出:

$ bash < <(curl -sk https://rvm.beginrescueend.com/install/rvm)
Cloning into rvm...
remote: Counting objects: 4757, done.
remote: Compressing objects: 100% (2427/2427), done.
remote: Total 4757 (delta 3082), reused 3183 (delta 1672)
Receiving objects: 100% (4757/4757), 1.57 MiB | 1.54 MiB/s, done.
Resolving deltas: 100% (3082/3082), done.
bash: line 298: syntax error near unexpected token `"--trace"'

Any idea what could be causing this? 知道是什么原因造成的吗?

I figured it out. 我想到了。

Turns out that I was running an super-old version of bash . 原来我正在运行bash的超旧版本。 Installing 4.2 fixed this, and RVM installed perfectly. 安装4.2可以解决此问题,并且RVM可以完美安装。

For the record, RVM needs bash v3.2 or better. 作为记录,RVM需要bash v3.2或更高版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM