当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : ubuntu9.04无法安装myget
帖子发表于 : 2009-05-10 16:35 

注册: 2006-11-30 13:59
帖子: 10
送出感谢: 0 次
接收感谢: 0 次
错误如下:liuquan@liuquan-desktop:~/myget-0.1.0$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output file name... 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 g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for egrep... grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for ANSI C header files... (cached) yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking for pthread_create in -lpthread... yes
checking for pkg-config... /usr/bin/pkg-config
checking for openssl... *** openssl is not found***
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
liuquan@liuquan-desktop:~/myget-0.1.0$ make
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/bash ./config.status
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
make all-recursive
make[1]: 正在进入目录 `/home/liuquan/myget-0.1.0'
Making all in src
make[2]: 正在进入目录 `/home/liuquan/myget-0.1.0/src'
source='url.cpp' object='url.o' libtool=no \
depfile='.deps/url.Po' tmpdepfile='.deps/url.TPo' \
depmode=gcc3 /bin/bash ../depcomp \
g++ -DHAVE_CONFIG_H -I. -I. -I.. -D_FILE_OFFSET_BITS=64 -g -O2 -c -o url.o `test -f url.cpp || echo './'`url.cpp
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp:66: 警告: 不建议使用从字符串常量到‘char*’的转换
url.cpp: In member function ‘int URL::_parse_location(char*&)’:
url.cpp:360: 错误: ‘atoi’在此作用域中尚未声明
make[2]: *** [url.o] 错误 1
make[2]:正在离开目录 `/home/liuquan/myget-0.1.0/src'
make[1]: *** [all-recursive] 错误 1
make[1]:正在离开目录 `/home/liuquan/myget-0.1.0'
make: *** [all] 错误 2
liuquan@liuquan-desktop:~/myget-0.1.0$
如何解决


页首
 用户资料  
 
2 楼 
 文章标题 : Re: ubuntu9.04无法安装myget
帖子发表于 : 2009-05-10 17:35 
头像

注册: 2008-07-14 22:42
帖子: 8078
地址: Beijing
送出感谢: 0 次
接收感谢: 0 次
这么老的东西,lz居然还要用?
作者说过这样的话
引用:

新的编译器检查的比较严格,我也好久没再动过它的代码了:)

有人报告错误
引用:
我下载了myget-0.1.2.tar.gz这个包,在ubuntu 8.10上make的时候有几个编译小错误,url.cpp, http.cpp, httpplugin.cp, ftpparser.cpp, ftpplugin.cpp 等等几个文件少包含了一些几个标准头文件。改了一下才编译过,刚才用了一下,挺简洁好用。

downloader.cpp: In member function ‘int Downloader::init_local_file_name()’:
downloader.cpp:132: error: ‘strlen’ was not declared in this scope
downloader.cpp: In member function ‘int Downloader::directory_download()’:
downloader.cpp:394: error: ‘strcpy’ was not declared in this scope
downloader.cpp:395: error: ‘mkstemp’ was not declared in this scope
downloader.cpp:416: error: ‘strrchr’ was not declared in this scope
downloader.cpp:429: error: ‘strlen’ was not declared in this scope
downloader.cpp:438: error: ‘strlen’ was not declared in this scope
downloader.cpp:451: error: ‘strrchr’ was not declared in this scope
make[2]: *** [downloader.o] Error 1
make[2]: Leaving directory `/home/drew/project/myget-0.1.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/drew/project/myget-0.1.2'
make: *** [all] Error 2

诡异的是我直接编译通过了,没有安装额外的依赖包
用checkinstall打了一个deb包看看能不能安装 :em09


附件:
myget_0.1.2-1_i386.deb [41.82 KiB]
被下载 670 次


_________________
Ubuntu User
页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译