在RH Linux上安装Ruby失败,原因是;制造;文件
我是Ruby新手,对Linux不太在行。我正在安装红帽Linux上的Ruby 我已经提取了Ruby软件包,现在正在进行自述文件的第5步,该文件说要执行“make”。(注意:我已经在这个问题的末尾复制/粘贴了自述文件中的步骤) 在我所在的目录(/opt/ruby\u home/)中没有看到“make”文件。我确实看到一个“Makefile”文件并尝试运行它,但输出不正确:在RH Linux上安装Ruby失败,原因是;制造;文件,ruby,linux,makefile,failed-installation,Ruby,Linux,Makefile,Failed Installation,我是Ruby新手,对Linux不太在行。我正在安装红帽Linux上的Ruby 我已经提取了Ruby软件包,现在正在进行自述文件的第5步,该文件说要执行“make”。(注意:我已经在这个问题的末尾复制/粘贴了自述文件中的步骤) 在我所在的目录(/opt/ruby\u home/)中没有看到“make”文件。我确实看到一个“Makefile”文件并尝试运行它,但输出不正确: [root@sdlc0917 ruby-2.1.3]# ./Makefile ./Makefile: line 1: SHE
[root@sdlc0917 ruby-2.1.3]# ./Makefile
./Makefile: line 1: SHELL: command not found
./Makefile: line 2: NULLCMD: command not found
./Makefile: line 3: NULLCMD: command not found
./Makefile: line 4: V:1=@: command not found
./Makefile: line 4: ECHO1: command not found
./Makefile: line 5: SHELL: command not found
./Makefile: line 5: RUNCMD: command not found
./Makefile: line 6: CDPATH: command not found
./Makefile: line 7: CHDIR: command not found
./Makefile: line 8: exec: =: not found
我发出了一个find命令并在/usr/bin/下找到了“make”,因此我从那里运行了“make”,但输出是:
[root@sdlc0917bin]#/制作
make:**未指定目标,也未找到makefile。停下来
因此,在这一点上,我不太确定该怎么做,因为自述文件并没有真正解释太多
非常感谢你的帮助
自述文件中的步骤包括:
0. If you want to use Microsoft Visual C++ to compile ruby,
read win32/README.win32 instead of this document.
1. If +./configure+ does not exist or is older than configure.in,
run autoconf to (re)generate configure.
2. Run +./configure+, which will generate config.h and Makefile.
Some C compiler flags may be added by default depending on your
environment. Specify <tt>optflags=..</tt> and <tt>warnflags=..</tt> as
necessary to override them.
3. Edit +defines.h+ if you need. Usually this step will not be needed.
4. Remove comment mark(<tt>#</tt>) before the module names from +ext/Setup+
(or add module names if not present), if you want to link modules
statically.
If you don't want to compile non static extension modules
(probably on architectures which does not allow dynamic loading),
remove comment mark from the line "<tt>#option nodynamic</tt>" in
+ext/Setup+.
Usually this step will not be needed.
5. Run +make+.
6. Optionally, run '<tt>make check</tt>' to check whether the compiled Ruby
interpreter works well. If you see the message "<tt>check succeeded</tt>",
your ruby works as it should (hopefully).
7. Run '<tt>make install</tt>'
0。如果你想用微软Visual C++来编译Ruby,
请阅读win32/README.win32而不是本文档。
1.如果+./configure+不存在或早于configure.in,
运行autoconf以(重新)生成配置。
2.运行+./configure+,它将生成config.h和Makefile。
默认情况下,可能会添加一些C编译器标志,具体取决于您的
环境指定optflags=。。和警告标志=。。作为
必须覆盖它们。
3.如果需要,请编辑+定义.h+。通常不需要此步骤。
4.从+ext/Setup中删除模块名称前的注释标记(#)+
(如果不存在,则添加模块名称),如果要链接模块
静态地。
如果您不想编译非静态扩展模块
(可能在不允许动态加载的体系结构上),
删除中“#option nodynamic”行的注释标记
+ext/Setup+。
通常不需要此步骤。
5.运行+生成+。
6.或者,运行“makecheck”检查编译后的Ruby
翻译效果很好。如果您看到消息“检查成功”,
您的ruby工作正常(希望如此)。
7.运行“makeinstall”
试试这个:
尝试通过RVM(ruby版本管理器)以更简单的方式安装ruby。
首先,学习
如果您试图这样运行Makefile,这不仅是一个错误,而且是一种犯罪。Makefiles不是可以使用/
执行的shell脚本。只需在项目文件夹中输入make
make
from/usr/bin/make
将自动拾取当前文件夹中的Makefile
文件,解析它并运行“Makefile”中指定的规则
found “make” under /usr/bin/
是make
是一个GNU实用程序,将安装在/usr/bin
下
[root@sdlc0917 bin]# ./make make: *** No targets specified and no makefile found. Stop.
似乎您将cd刻录到/usr/bin并执行了make
,但/usr/bin下没有makefile,因此错误很明显
[root@sdlc0917 bin]# ./make make: *** No targets specified and no makefile found. Stop.