LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 767|回复: 3

怎么我输入 autoscan不行

[复制链接]
发表于 2003-8-23 01:31:20 | 显示全部楼层 |阅读模式
我想写个简单的makefile
#mkdir devel
#mkare devel/hello
#cd devel/hello
#ee hello.c
#echo $0
bash
#/usr/local/bni/psh autoscan
#ls
hello.c
成功是这样的;
#ls
configure.scan hello.c

# pkg_info|grep auto
autoconf-2.57       Automatically configure source code on many Un*x platforms
automake-1.5,1      GNU Standards-compliant Makefile generator
automake-1.7.5_1    GNU automake generates input files for GNU autoconf
# pkg_info|grep perl
p5-Sort-Versions-1.4 A perl 5 module for sorting of revision-like numbers
p5-bioperl-0.7.2    A collection of Perl modules for bioinformatics
p5-postgresql-plperl-7.3.4 The most advanced open-source database available anywhere
perlsh-0.009_1      New shell made entirely out of a Perl script

why?
help me !
 楼主| 发表于 2003-8-23 10:12:47 | 显示全部楼层
解决了 是命令错误  应该是autoscan257
 楼主| 发表于 2003-8-23 11:51:16 | 显示全部楼层
怎么做到最后一步没有configure   :ask :ask :ask

bash-2.05b# ./configure
bash: ./configure: No such file or directory
bash-2.05b# ls
Makefile.am     autoscan257.log configure.in    install-sh
Makefile.in     config.guess    depcomp         missing
aclocal.m4      config.sub      hello.c         mkinstalldirs
bash-2.05b#
 楼主| 发表于 2003-8-23 13:27:19 | 显示全部楼层
艾~~我老是这么大意 忘了autoconf了
最后一步make失败
psh% ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... nawk
checking whether make sets $(MAKE)... yes
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 for style of include used by make... GNU
checking dependency style of gcc... gcc
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default-1 commands


psh% make
gcc -g -O2 -o hello hello.o
/usr/lib/crt1.o: In function `_start':
/usr/lib/crt1.o(.text+0x82): undefined reference to `main'
*** Error code 1

Stop in /usr/dan/scr/devel/hello.
[1] Error 3556 make
psh%

那些 make后面的是什么意思? 错在那里?  :ask :ask
有可能是软件的版本问题吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表