如何在 CentOs(或任何 LINUX/UNIX 系统)上构建/安装 protobuf 2.4.1?
好吧,我在 UNIX/LINUX 领域完全是个外国人,但我需要安装 profbuf 2.4.1。
我按照说明执行
- wget http://protobuf.googlecode.com /files/protobuf-2.4.1.tar.bz2
- tar xfj protobuf-2.4.1.tar.bz2
- Pushd protobuf-2.4.1
- ./configure
- make
- sudo make install
我只能走到 ./configure'。当我尝试运行
make` 时,出现一些错误,提示“未指定目标且未找到 makefile...停止”
有人知道我可能做错了什么吗?
谢谢!!!
Ok, so I'm kind of a complete foreigner in the UNIX/LINUX land, but I need to install profbuf 2.4.1.
I was following the instructions by doing
- wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.bz2
- tar xfj protobuf-2.4.1.tar.bz2
- pushd protobuf-2.4.1
- ./configure
- make
- sudo make install
I could only go as far as ./configure'. WHen I tried running
make`, I got some error saying "No target specified and no makefile found... Stop"
Does anyone know what I might've done wrong?
Thanks!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您的系统中可能没有 g++ 编译器,或者您的环境变量不包含它的路径。要在 Linux 上安装一个,请使用以下命令:
You probably don't have a g++ compiler in your system or your environment variable doesn't contain the path of it. To install one on linux use the following:
我以前也遇到过同样的问题,现在知道原因了。缺少相应的库。如果您使用的是redhat,请使用root权限输入两行命令:
如果您使用的是ubuntu,您可以输入:
我已经通过这种方式解决了我的问题。祝你好运!
I had met the same question before, and now I've known the reason. It's lack of corresponding library. If you are using redhat, use root permission to enter the two lines of commands:
If you are using ubuntu,you can enter this:
I've solved my question by that way. Wish you luck!