| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2921 人关注过本帖
标题:ubuntu安装tar.gz文件老是失败
只看楼主 加入收藏
xuzejia_love
Rank: 2
等 级:论坛游民
帖 子:41
专家分:49
注 册:2010-12-5
结帖率:100%
收藏
已结贴  问题点数:0 回复次数:8 
ubuntu安装tar.gz文件老是失败
为什么再ubuntu下面安装tar.gz文件老是失败的,我可是完全按照标准步骤安装的
tar -xvzf *.tar.gz
可是到了下一步的./configure就老是出错了,make更是弄不了了,make install更不用说。任何这种文件都不行,真是奇怪了。
./configure出错信息:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for g++... g++
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for gawk... (cached) gawk
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for ranlib... ranlib
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking whether to build the client... yes
checking for traditional single directory, in place installation... no
checking for library containing acos... -lm
checking for library containing dlopen... -ldl
checking for library containing clock_gettime... -lrt
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing jpeg_read_header... no
configure: error: "Required jpeg library not found."
最后一句是什么出错了?
求救!这种文件安装不了ubuntu可真的有点少了胳膊短了腿,难道是天生对这种文件不支持的吗?百度之后老是说着一样的步骤,可是那些步骤都不行啊!我的ubuntu是10.10的。
现在安装个linux游戏都不行,甚是蛋疼……


[ 本帖最后由 xuzejia_love 于 2011-4-9 06:43 编辑 ]
搜索更多相关主题的帖子: 下一步 
2011-04-09 14:11
flylee
Rank: 5Rank: 5
等 级:职业侠客
帖 子:309
专家分:374
注 册:2004-8-10
收藏
得分:0 
缺少库啊,你google一下答案一大把
2011-04-09 20:57
xuzejia_love
Rank: 2
等 级:论坛游民
帖 子:41
专家分:49
注 册:2010-12-5
收藏
得分:0 
回复 2楼 flylee
知道去google,可是那些很多方法都去试,都不行,就是不知到具体缺了什么。

学的是语法,要的是算法。
2011-04-09 23:04
zjsxwc
Rank: 7Rank: 7Rank: 7
等 级:黑侠
威 望:1
帖 子:252
专家分:601
注 册:2011-1-20
收藏
得分:0 
error: "Required jpeg library not found."

The tools I recommended:
GUI: CSharp(VS), QT;    Core Code: Plain C (Tiny C Compiler);    Web: Python, JavaScript;    Android: Java;    Embedded System: ASM&C (Linux)
2011-04-10 11:27
xuzejia_love
Rank: 2
等 级:论坛游民
帖 子:41
专家分:49
注 册:2010-12-5
收藏
得分:0 
回复 4楼 zjsxwc
能不能具体翻译一下?我也注意到了这个。

学的是语法,要的是算法。
2011-04-10 11:41
pangding
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:北京
等 级:贵宾
威 望:94
帖 子:6784
专家分:16751
注 册:2008-12-20
收藏
得分:0 
error: "Required jpeg library not found."

错误:“要求的 jpeg 库未找到。”
2011-04-11 08:21
pangding
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:北京
等 级:贵宾
威 望:94
帖 子:6784
专家分:16751
注 册:2008-12-20
收藏
得分:0 
你如果能联网的话。(显然应该能,要不然也发不了帖子)

试试
$ sudo apt-get install libjpeg*

2011-04-11 08:26
xuzejia_love
Rank: 2
等 级:论坛游民
帖 子:41
专家分:49
注 册:2010-12-5
收藏
得分:0 
回复 7楼 pangding
libjpeg62 已经是最新的版本了。
libjpeg62-dev 已经是最新的版本了。
有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
包尚未被创建或是它们已被从新到(Incoming)目录移出。
下列信息可能会对解决问题有所帮助:

下列软件包有未满足的依赖关系:
 libjpeg8-dev : 冲突: libjpeg62-dev 但是 6b-16.1 正要被安装
E: 破损的软件包


好像有安装过了,现在./configure后的错误变成了这样了:


configure: error: Package requirements (libcurl ogg vorbis vorbisfile freetype2) were not met:

No package 'libcurl' found
No package 'ogg' found
No package 'vorbis' found
No package 'vorbisfile' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

先前google之后看到了一些方法后去试,然后就变成了这样的错误了,突然间缺少了四个package,想不通。
先前的方法是安装了一个什么,格式是这样的:sudo apt-get install,install后面是什么我忘了,我注意到了有dep三个字母。还有,直接sudo apt-get install libcurl不行,libcurl下载后是用tar.gz文件安装的。其它三个试了也不行。


[ 本帖最后由 xuzejia_love 于 2011-4-11 16:38 编辑 ]

学的是语法,要的是算法。
2011-04-12 00:34
pangding
Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19Rank: 19
来 自:北京
等 级:贵宾
威 望:94
帖 子:6784
专家分:16751
注 册:2008-12-20
收藏
得分:20 
确实会有些包是冲突的。这个安装包需要些其它知识。

比如你在打完
apt-get install libcurl
之后按两个 tab键,应该会列出很多能安装的包,你得自己选。

而且你只是说你解压了个 tar。便其实问题和 tar 一点关系都没有,全是依赖问题。
我也不知道你要装什么。一般你去发布你要装的东西的官网查一下,他会有很详细的说明。比如它要求的运行环境之类的。

现在安装库一般还是用软件包管理系统之类的工具,那里有依赖描述,它会自动检查依赖性。自己手动装就是步骤比较多。
不过大过分的,像它这种提示信息出的相当丰富了。应该能自己解决呗。如果你不会,就去找个 ubuntu 的论坛,如果你要装的东西不是那么冷门的话,肯定有人用过。那里八成有指导初学者安装的手把手教程,看看呗。
2011-04-12 09:14
快速回复:ubuntu安装tar.gz文件老是失败
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.019490 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved