完全丢失:Python 配置脚本运行时出错
我下载了 python 2.7.2 的 tarball 安装在 Suse Linux 服务器上——它附带了 2.6 和 3.1。
将其解压(我知道——抱歉,行话错误)到一个目录。
当尝试运行 ./configure 时,它应该创建一个有效的 makefile,我无法完成第一步:脚本报告它在路径上找不到编译器。
但是,当我在同一目录中运行 shell 并输入“make”时,make 就会运行。
我对 Linux 真的很不熟悉,但这看起来太基础了,我什至无法开始看出哪里出了问题。
我还下载了似乎是适用于 SUSE Linux 的 python 2.7.2 的 RPM 文件,但我一生都无法弄清楚如何将此包“导入”到 Yast2 或“安装软件”中。这两个工具似乎难以穿透,并且对保存在文件系统中而不是从特定分发网站访问的包充满敌意。
确实,这应该是微不足道的,但事实并非如此。
Suse 使用 Gnome,并且 Gnome 似乎对桌面最终用户类型文件的目录结构应该有自己的看法。这是我放置下载的 tar 文件的地方。如果我把它放在 usr 的某个地方,我会做得更好吗?
抱歉,我比大多数 stackoverflow 参与者都无知得多,但我不是一个 Linux 爱好者。
I downloaded tarball of python 2.7.2 to install on Suse Linux server--it comes with 2.6 and 3.1.
Untarred it (I know--wrong lingo, sorry) to a directory.
When trying to run ./configure, which should create a valid makefile I can't get past the step one: the script reports that it can't find a compiler on the path.
But, when I run the shell in the same directory and type "make", make runs.
I am really unfamiliar with Linux, but this just seems so basic that I can't even begin to see what's wrong.
I also downloaded what appears to be an RPM file for python 2.7.2 for SUSE Linux but I can't for the life of me figure out how to get "import" this package into Yast2 or "Install Software." These two tools seem impenetrable and hostile to packages saved in the file system rather than accessed from specific distribution web sites.
Really, this should be just trivial but it is not.
Suse uses Gnome and Gnome seems to have its own view of what the directory structure should be for desktop end user-y kinds of files. That is where I put my downloaded tar file. Might I do better if I put somewhere in usr?
Sorry to be so much more clueless than most stackoverflow participants but I am just not a Linux guy.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来你根本没有安装编译器。应做:
如果 ./configure 失败,则运行 make 就没有意义。
Sounds like you simply don't have the compiler installed. Do:
If a ./configure fails, there's no point in running make.
Suse 有一个名为 Yast 的包管理器。它会毫不费力地完成您的安装。
Suse has a package manager called Yast. It would do your installation with no fuss.