ubuntu 安装 tar.bz2的问题

kongdelu2008 2009-04-05 12:32:07
我在解压后,进入了目录里,使用./configure 后,然后make ,可是出现错误了,提示“make: *** 没有指明目标并且找不到 makefile。 停止。” 直接使用make install也不行,依然有错误,问下这是为什么,在执行这些命令前有什么要注意的吗?
...全文
2072 27 打赏 收藏 转发到动态 举报
写回复
用AI写文章
27 条回复
切换为时间正序
请发表友善的回复…
发表回复
kongdelu2008 2009-04-06
  • 打赏
  • 举报
回复
[Quote=引用 25 楼 tsoslience 的回复:]
装mysql也遇到了这个问题
但baidu了下
在后面加了点参数就ok了
[/Quote]
都有哪些参数,具体怎么用呢,重谢!!!分不够还可再加。
kongdelu2008 2009-04-06
  • 打赏
  • 举报
回复
哈哈,问题解决了,是google大哥帮的忙,http://bakey.ycool.com/post.2867374.html 里面讲解了各种错误及解决方案,内容很全。。
同时感谢大家的积极回答。。。
tsoslience 2009-04-06
  • 打赏
  • 举报
回复
装mysql也遇到了这个问题
但baidu了下
在后面加了点参数就ok了
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 23 楼 morris88 的回复:]
Assembly code1.sudoapt-getinstallbuild-essential//安装主要编译工具gcc,g ,make2.sudoapt-getinstallautoconfautomake1.93.sudoapt-getinstallflexbison4.sudoapt-getinstallmanpages-dev//安装C语言函数man文档5.sudoapt-getinstallbinutils-doccpp-docgcc-docglibc-docstl-manual//安装相关文档

都装上吧。
[/Quote]
除了第一个,其他的几个都找不到软件包,需要添加哪些源?
morris88 2009-04-05
  • 打赏
  • 举报
回复

1.sudoapt-getinstallbuild-essential//安装主要编译工具gcc,g ,make
2.sudoapt-getinstallautoconfautomake1.9
3.sudoapt-getinstallflexbison
4.sudoapt-getinstallmanpages-dev//安装C语言函数man文档
5.sudoapt-getinstallbinutils-doccpp-docgcc-docglibc-docstl-manual//安装相关文档


都装上吧。
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
1.sudoapt-getinstallbuild-essential//安装主要编译工具gcc,g ,make

这个我已经安装了,可是还是不能./configure成功,还需要什么吗?
morris88 2009-04-05
  • 打赏
  • 举报
回复
当然可以。不过我用的是 fedora 10。
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 19 楼 morris88 的回复:]
Assembly code一.安装C/C++程序的开发环境1.sudoapt-getinstallbuild-essential//安装主要编译工具gcc,g ,make2.sudoapt-getinstallautoconfautomake1.93.sudoapt-getinstallflexbison4.sudoapt-getinstallmanpages-dev//安装C语言函数man文档5.sudoapt-getinstallbinutils-doccpp-docgcc-docglibc-docstl-manual//安装相关文档

二.安装Gnome桌面程序的开发环境1.sudoapt-getinstallgnome-core-devel//安装核心文件2.sudoapt…
[/Quote]
我就只想安装tar.bz2,我只安装C/C++程序的开发环境,可以吗?
morris88 2009-04-05
  • 打赏
  • 举报
回复

一.安装C/C++程序的开发环境
1.sudoapt-getinstallbuild-essential//安装主要编译工具gcc,g ,make
2.sudoapt-getinstallautoconfautomake1.9
3.sudoapt-getinstallflexbison
4.sudoapt-getinstallmanpages-dev//安装C语言函数man文档
5.sudoapt-getinstallbinutils-doccpp-docgcc-docglibc-docstl-manual//安装相关文档

二.安装Gnome桌面程序的开发环境
1.sudoapt-getinstallgnome-core-devel//安装核心文件
2.sudoapt-getinstallpkg-config
3.sudoapt-getinstalldevhelp//安装GTK文档查看程序
4.sudoapt-getinstalllibglib2.0-doclibgtk2.0-doc//安装API参考手册及其它帮助文档
5.sudoapt-getinstalgladelibglade2-dev//安装GTK界面构造程序

三.安装JAVA开发环境
1.sudoapt-getinstallsun-java6-jdksun-java6-docsun-java6-source//安装核心开发用具,相关文档
2.sudoupdate-alternatives--configjava//通常给出两个或多个JRE选择路径
选择:/usr/lib/jvm/java-1.5.0-sun/jre/bin/java作为你的JAVA运行环境
3.sudovim/etc/environment//配置环境变量,添加如下两行:
CLASSPATH=/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
4.sudoapt-getinstalleclipse//安装eclipse
5.sudoupdate-java-alternatives-sjava-6-sun//SUN版本的JAVA设置为系统默认JDK
6.sudovim/etc/jvm//编辑JVM配置文件,将文件中的/usr/lib/jvm/java-6-sun放到配置文件的顶部
7.sudovim/etc/eclipse/java_home//操作如上
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 17 楼 fox000002 的回复:]
引用 14 楼 kongdelu2008 的回复:
是不是软件包的问题呢?



ubuntu 默认没有安装开发包,需要自己安装
[/Quote]
该怎么做?
fox000002 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 14 楼 kongdelu2008 的回复:]
是不是软件包的问题呢?

[/Quote]

ubuntu 默认没有安装开发包,需要自己安装
morris88 2009-04-05
  • 打赏
  • 举报
回复
把config.log最后部分贴一下
morris88 2009-04-05
  • 打赏
  • 举报
回复
把config.log最后部分贴一下
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
是不是软件包的问题呢?
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
fox000002我按照你的方法做了,可是执行./configure后依然有错误,错误提示“checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!“

make 还是执行不了
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 10 楼 morris88 的回复:]
引用 9 楼 kongdelu2008 的回复:
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking h…

貌似c++预处理器检测 /lib/cpp 出错了。看看有没有这个目录呀!
[/Quote]
有cpp,这样,我先按照11楼的做法试试
fox000002 2009-04-05
  • 打赏
  • 举报
回复
根本找不到编译器

先装上再说

sudo apt-get install build-essential
morris88 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 kongdelu2008 的回复:]
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
[/Quote]

貌似c++预处理器检测 /lib/cpp 出错了。看看有没有这个目录呀!
kongdelu2008 2009-04-05
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 zhm8818 的回复:]
./config没成功的样子,仔细看看./config的结果是什么样的 ?
[/Quote]
./configure的输出是这样的

linux@ubuntu:~/桌面/chm_viewer$ ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
zhm8818 2009-04-05
  • 打赏
  • 举报
回复
./config没成功的样子,仔细看看./config的结果是什么样的 ?
加载更多回复(7)

19,610

社区成员

发帖
与我相关
我的任务
社区描述
系统使用、管理、维护问题。可以是Ubuntu, Fedora, Unix等等
社区管理员
  • 系统维护与使用区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧