由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 文科傻逼请教大牛一个make问题。
相关主题
初见mackintoshInstalling Autoconf Problem
请推荐makefile generator想要系统的学习Linux的原理,有什么好推荐?
大家用什么build tool?今天是 Linux 的 24 岁生日
哪个build environment?你们谁写过长一点儿的python?
麒麟操作系统[zz]how to begin kernel development step by step?
苹果难道不是已经往Linux里渗透了?Makefile中怎么处理没有扩展名的文件?
linux vs unix在Makefile的文件关联中,头文件依赖另一个头文件怎么办?
还是关于用GPL code的问题求教关于makefile可选target的问题
相关话题的讨论汇总
话题: checking话题: yes话题: gcc话题: whether话题: gnu
进入Linux版参与讨论
1 (共1页)
F****3
发帖数: 1504
1
想装一个API,按照说明书,打了这些字在Ubuntu里面:
./configure
make
make check
make install
结果没反应。。。唉!!!
请大牛之一下招数吧!
G*****h
发帖数: 33134
2
不会一点反应都没有的
屏幕上的东西都贴上来看看

【在 F****3 的大作中提到】
: 想装一个API,按照说明书,打了这些字在Ubuntu里面:
: ./configure
: make
: make check
: make install
: 结果没反应。。。唉!!!
: 请大牛之一下招数吧!

F****3
发帖数: 1504
3
出现了这个。。。
bash: ./configure: No such file or directory

【在 G*****h 的大作中提到】
: 不会一点反应都没有的
: 屏幕上的东西都贴上来看看

G*****h
发帖数: 33134
4
那你当前目录没这个 ./configure 文件呗

【在 F****3 的大作中提到】
: 出现了这个。。。
: bash: ./configure: No such file or directory

F****3
发帖数: 1504
5
我是想装这个东西
https://github.com/maxmind/geoip-api-c/blob/master/README.md
请问应该怎么搞呢? 太不懂了。。。谢谢!
G*****h
发帖数: 33134
6
go to the directory that has "configure" then do it

【在 F****3 的大作中提到】
: 我是想装这个东西
: https://github.com/maxmind/geoip-api-c/blob/master/README.md
: 请问应该怎么搞呢? 太不懂了。。。谢谢!

W*****x
发帖数: 684
7
$cd geoip-api-c-master
$autoconf
$./configure
then,,,
b*******s
发帖数: 5216
8
好吧,这个不是按gnu的方式发布的
也许就一个makefile在那里

【在 F****3 的大作中提到】
: 出现了这个。。。
: bash: ./configure: No such file or directory

F****3
发帖数: 1504
9
谢谢各位大哥帮忙!!!!
试了一下autoconf,好像卡住了。
fas133@ubuntu:~/temp/geoip-api-c-master$ autoconf
configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
./configure终于能执行了。
fas133@ubuntu:~/temp/geoip-api-c-master$ ./configure
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
./configure: line 3438: syntax error near unexpected token `1.11.0'
./configure: line 3438: `AM_INIT_AUTOMAKE(1.11.0)'
但是make不能搞,报错说:
fas133@ubuntu:~/temp/geoip-api-c-master$ make
make: *** No targets specified and no makefile found. Stop.
请问应该怎么搞呢?谢谢! 装得是64位的Linux,应该没有很大问题吧?
b*******s
发帖数: 5216
10
去看了下
你要做的就是建autoconf.ac
然后把他写的automake.am引用起来就行了
你可以搜索下autoconf.ac的简单例子
good luck

【在 F****3 的大作中提到】
: 谢谢各位大哥帮忙!!!!
: 试了一下autoconf,好像卡住了。
: fas133@ubuntu:~/temp/geoip-api-c-master$ autoconf
: configure.ac:6: error: possibly undefined macro: AM_INIT_AUTOMAKE
: If this token and others are legitimate, please use m4_pattern_allow.
: See the Autoconf documentation.
: ./configure终于能执行了。
: fas133@ubuntu:~/temp/geoip-api-c-master$ ./configure
: checking for gcc... gcc
: checking whether the C compiler works... yes

相关主题
苹果难道不是已经往Linux里渗透了?Installing Autoconf Problem
linux vs unix想要系统的学习Linux的原理,有什么好推荐?
还是关于用GPL code的问题今天是 Linux 的 24 岁生日
进入Linux版参与讨论
F****3
发帖数: 1504
11
谢谢大牛指教,我去查查看!谢谢!
S*A
发帖数: 7142
12
你想装的是神魔API?
一般都带个 bootstrap 的脚本来自动生成可以用的
configure 不用你自己一点点试用。
autoconf 和 automake 是非常恶心的东西。
能用就最好,不要去改。
W*****x
发帖数: 684
13
$ cd geoip-api-c-master
$ libtoolize
$ aclocal
$ autoconf
$ automake --add-missing
$./configure
checking for gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to x86_64-
unknown-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-unknown-linux-gnu file names to toolchain
format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) 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
checking for byte... no
checking for ushort... yes
checking for ulong... yes
checking for u16... no
checking for u32... no
checking for off_t... yes
checking for size_t... yes
checking for ssize_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking whether byte ordering is bigendian... no
checking for getopt... yes
checking for gettimeofday... yes
checking for pread... yes
checking for vasprintf... yes
checking for vsnprintf... yes
checking for vsprintf... yes
checking for gethostbyname... yes
checking for gethostbyname_r... yes
checking for memset... yes
checking for memchr... yes
checking for munmap... yes
checking for strrchr... yes
checking for socket... yes
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/param.h... yes
checking for getpagesize... yes
checking for working mmap... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating GeoIP.spec
config.status: creating geoip.pc
config.status: creating libGeoIP/Makefile
config.status: creating apps/Makefile
config.status: creating man/Makefile
config.status: creating test/Makefile
config.status: executing depfiles commands
config.status: executing libtool commands
$ make
...(blabla)
$ cd libGeoIP/
$ ll
...(your .o .la)
Done, enjoy!
S*A
发帖数: 7142
14
考,果然被我不幸言中了。
我去看了,你那个项目里面有 bootstrap 那个脚本了。
你的步骤可以简化为:
$ cd geoip-api-c-master
$ ./bootstrap
$ ./configure
$ make
...
b*******s
发帖数: 5216
15
哈,我看漏了

【在 S*A 的大作中提到】
: 考,果然被我不幸言中了。
: 我去看了,你那个项目里面有 bootstrap 那个脚本了。
: 你的步骤可以简化为:
: $ cd geoip-api-c-master
: $ ./bootstrap
: $ ./configure
: $ make
: ...

F****3
发帖数: 1504
16
太谢谢楼上几位大哥了!
昨天搞了一个晚上,似乎可以了!
c********r
发帖数: 410
17
看在你自己扁自己成傻逼,大家也不能不帮丫!

【在 F****3 的大作中提到】
: 太谢谢楼上几位大哥了!
: 昨天搞了一个晚上,似乎可以了!

1 (共1页)
进入Linux版参与讨论
相关主题
求教关于makefile可选target的问题麒麟操作系统[zz]
求助 makefile编译苹果难道不是已经往Linux里渗透了?
LINUX下的ECLIPSE反应很迟钝。不好用。有同感么大家linux vs unix
android销售已经第二了还是关于用GPL code的问题
初见mackintoshInstalling Autoconf Problem
请推荐makefile generator想要系统的学习Linux的原理,有什么好推荐?
大家用什么build tool?今天是 Linux 的 24 岁生日
哪个build environment?你们谁写过长一点儿的python?
相关话题的讨论汇总
话题: checking话题: yes话题: gcc话题: whether话题: gnu