Linux 中的 makefile 在 OpenSolaris 中不起作用

发布于 2024-08-27 03:35:39 字数 249 浏览 7 评论 0原文

在 OpenSolaris 操作系统中,当我在 Linux 操作系统上运行由 Eclipse CDT 生成的 makefile 时,我在第一个 -include 行上收到错误。

FreeBSD 中也出现同样的错误,通过执行 gmake 而不是 make 解决了。
在 OpenSolaris(刚刚安装)中,gmake 不起作用(未找到命令)。

我应该安装什么软件包以及如何在 OpenSolaris 中构建 Linux 生成的 C++ 项目?

In OpenSolaris OS, when I run makefile generated by Eclipse CDT on the Linux OS, I get an error on the first -include line.

The same error was in FreeBSD, and was solved by executing gmake instead of make.
In OpenSolaris (just installed) gmake doesn't work (command not found).

What package should I install and how exactly, to build Linux-generated C++ project in OpenSolaris?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

匿名。 2024-09-03 03:35:39

本教程可能会有所帮助你会得到一个可用的/令人满意的工具链。我不确定您已经拥有什么,您可能只需要安装 SUNWgmake 即可启动并运行。请注意,这只是可移植性的冰山一角。

This tutorial might help you get a working / agreeable tool chain. I'm not sure what you already have, you may just need to install SUNWgmake to get up and running. Note, its just the tip of the portability iceberg.

╭ゆ眷念 2024-09-03 03:35:39

如果您找不到 GNU Make 软件包,您可以随时下载源代码并构建自己做:

tar xjf make-VER.tar.bz2  # or tar xzf for .tar.gz
cd make-VER
./configure
make
make install  # may need to run as root...

If you can't find a GNU Make package, you can always download the source and build it yourself:

tar xjf make-VER.tar.bz2  # or tar xzf for .tar.gz
cd make-VER
./configure
make
make install  # may need to run as root...
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文