求助:编译hello.o 模块出错
时间:2010-08-01
来源:互联网
sudo ./configure --prefix=/opt/crosstool-ng-1.7.2
Checking for 'grep'... /bin/grep
Checking whether '/bin/grep' supports -E... yes
Checking for 'sed'... /bin/sed
Checking whether '/bin/sed' supports -i and -e... yes
Checking for 'bash'... /bin/bash
Checking for 'cut'... /usr/bin/cut
Checking for 'install'... /usr/bin/install
Checking for 'make'... /usr/bin/make
Checking for 'gcc'... /usr/bin/gcc
Checking for 'awk'... /usr/bin/awk
Checking for 'bison'... /usr/bin/bison
Checking for 'flex'... /usr/bin/flex
Checking for 'makeinfo'... /usr/bin/makeinfo
Checking for 'automake'... /usr/bin/automake
Checking for 'libtool'... /usr/bin/libtool
Checking for 'stat'... /usr/bin/stat
Checking for 'aria2c'... /usr/bin/aria2c
Checking for 'cvs'... /usr/bin/cvs
Checking for 'patch'... /usr/bin/patch
Checking for 'tar'... /bin/tar
Checking for 'gzip'... /bin/gzip
Checking for 'bzip2'... /bin/bzip2
Checking for 'lzma'... /usr/bin/lzma
Checking for 'readlink'... /bin/readlink
Checking for 'ncurses/ncurses.h'... no #我确实装了最新的ncurses,但是我在提示符下输入ncurses,提示找不到该命令。
Checking for 'ncurses/curses.h'... no
Checking for 'ncurses.h'... yes
Checking for 'libncursesw.so'... no #这个也是,我也装了。同样在提示符下输入libncursesw,也找不到。
Checking for 'libncursesw.a'... no
Checking for 'libncursesw.dylib'... no
Checking for 'libncurses.so'... yes
Computing version string... 1.7.2
Building up Makefile... done
crosstool-NG configured as follows:
PREFIX='/opt/crosstool-ng-1.7.2'
BINDIR='/opt/crosstool-ng-1.7.2/bin'
LIBDIR='/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
DOCDIR='/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
MANDIR='/opt/crosstool-ng-1.7.2/share/man'
Now run:
make
make install
lym@localhost:/work/crosstool-ng-1.7.2$ make
SED 'ct-ng'
/bin/sh: cannot create ct-ng: Permission denied
make[1]: *** [ct-ng] Error 2
make: *** [build] Error 2
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
SED 'docs/ct-ng.1'
GZIP 'docs/ct-ng.1.gz'
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make install
MKDIR '/opt/crosstool-ng-1.7.2/bin'
INST 'ct-ng'
RMDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2/'
MKDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
INST 'config/'
INST 'kconfig/'
INST 'patches/'
INST 'scripts/'
INST 'steps.mk'
INST 'paths.mk'
INST 'samples/'
MKDIR '/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
INST 'docs/CREDITS'
INST 'docs/overview.txt'
MKDIR '/opt/crosstool-ng-1.7.2/share/man/man1'
INST 'ct-ng.1.gz'
For auto-completion, do not forget to install 'ct-ng.comp' #关键是这一句,我不理解,什么叫装ct-ng.comp 到bash_completion.d这两个都
into you 'bash_completion.d' #在我的crosstool-ng-1.7.2里面。都是文件。
谢谢!
你能帮助我,说明你很棒!
Checking for 'grep'... /bin/grep
Checking whether '/bin/grep' supports -E... yes
Checking for 'sed'... /bin/sed
Checking whether '/bin/sed' supports -i and -e... yes
Checking for 'bash'... /bin/bash
Checking for 'cut'... /usr/bin/cut
Checking for 'install'... /usr/bin/install
Checking for 'make'... /usr/bin/make
Checking for 'gcc'... /usr/bin/gcc
Checking for 'awk'... /usr/bin/awk
Checking for 'bison'... /usr/bin/bison
Checking for 'flex'... /usr/bin/flex
Checking for 'makeinfo'... /usr/bin/makeinfo
Checking for 'automake'... /usr/bin/automake
Checking for 'libtool'... /usr/bin/libtool
Checking for 'stat'... /usr/bin/stat
Checking for 'aria2c'... /usr/bin/aria2c
Checking for 'cvs'... /usr/bin/cvs
Checking for 'patch'... /usr/bin/patch
Checking for 'tar'... /bin/tar
Checking for 'gzip'... /bin/gzip
Checking for 'bzip2'... /bin/bzip2
Checking for 'lzma'... /usr/bin/lzma
Checking for 'readlink'... /bin/readlink
Checking for 'ncurses/ncurses.h'... no #我确实装了最新的ncurses,但是我在提示符下输入ncurses,提示找不到该命令。
Checking for 'ncurses/curses.h'... no
Checking for 'ncurses.h'... yes
Checking for 'libncursesw.so'... no #这个也是,我也装了。同样在提示符下输入libncursesw,也找不到。
Checking for 'libncursesw.a'... no
Checking for 'libncursesw.dylib'... no
Checking for 'libncurses.so'... yes
Computing version string... 1.7.2
Building up Makefile... done
crosstool-NG configured as follows:
PREFIX='/opt/crosstool-ng-1.7.2'
BINDIR='/opt/crosstool-ng-1.7.2/bin'
LIBDIR='/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
DOCDIR='/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
MANDIR='/opt/crosstool-ng-1.7.2/share/man'
Now run:
make
make install
lym@localhost:/work/crosstool-ng-1.7.2$ make
SED 'ct-ng'
/bin/sh: cannot create ct-ng: Permission denied
make[1]: *** [ct-ng] Error 2
make: *** [build] Error 2
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
SED 'docs/ct-ng.1'
GZIP 'docs/ct-ng.1.gz'
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make install
MKDIR '/opt/crosstool-ng-1.7.2/bin'
INST 'ct-ng'
RMDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2/'
MKDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
INST 'config/'
INST 'kconfig/'
INST 'patches/'
INST 'scripts/'
INST 'steps.mk'
INST 'paths.mk'
INST 'samples/'
MKDIR '/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
INST 'docs/CREDITS'
INST 'docs/overview.txt'
MKDIR '/opt/crosstool-ng-1.7.2/share/man/man1'
INST 'ct-ng.1.gz'
For auto-completion, do not forget to install 'ct-ng.comp' #关键是这一句,我不理解,什么叫装ct-ng.comp 到bash_completion.d这两个都
into you 'bash_completion.d' #在我的crosstool-ng-1.7.2里面。都是文件。
谢谢!


作者: kernelshell 发布时间: 2010-08-01
这是我最新的情况:
lym@localhost:/work/crosstool-ng-1.7.2$ ls -l
total 2044
-rwxrwxrwx 1 root root 1241 2010-07-31 06:45 bash_completion.d
-rwxrwxrwx 1 root root 1979602 2008-11-02 14:37 bison-2.4.tar.gz
drwxrwxrwx 10 root root 4096 2010-07-31 00:05 config
-rwxrwxrwx 1 root root 14944 2010-07-29 15:18 configure
drwxrwxrwx 2 root root 4096 2010-07-31 00:05 contrib
-rwxrwxrwx 1 root root 2517 2010-07-29 15:18 COPYING
-rwxr-xr-x 1 root root 4732 2010-08-01 07:09 ct-ng
-rwxrwxrwx 1 root root 1241 2010-07-29 15:18 ct-ng.comp
-rwxrwxrwx 1 root root 4649 2010-07-29 15:18 ct-ng.in
drwxrwxrwx 2 root root 4096 2010-07-31 06:05 docs
drwxrwxrwx 3 root root 4096 2010-07-31 00:05 kconfig
lrwxrwxrwx 1 root root 7 2010-07-31 00:05 LICENSES -> COPYING
drwxrwxrwx 3 root root 4096 2010-07-31 00:05 licenses.d
-rwxrwxrwx 1 root root 8184 2010-08-01 07:09 Makefile
-rwxrwxrwx 1 root root 8082 2010-07-29 15:18 Makefile.in
drwxrwxrwx 18 root root 4096 2010-07-31 00:05 patches
-rwxrwxrwx 1 root root 122 2010-07-31 06:05 paths.mk
-rwxrwxrwx 1 root root 783 2010-07-29 15:18 README
drwxrwxrwx 36 root root 4096 2010-07-31 00:05 samples
drwxrwxrwx 3 root root 4096 2010-07-31 06:05 scripts
-rwxrwxrwx 1 root root 2300 2010-07-29 15:18 steps.mk
-rwxrwxrwx 1 root root 810 2010-07-29 15:18 TODO
lym@localhost:/work/crosstool-ng-1.7.2$ cd bash_completion.d
bash: cd: bash_completion.d: Not a directory
lym@localhost:/work/crosstool-ng-1.7.2$ clear
lym@localhost:/work/crosstool-ng-1.7.2$ sudo ./configure --prefix=/opt/crosstool-ng-1.7.2
Checking for 'grep'... /bin/grep
Checking whether '/bin/grep' supports -E... yes
Checking for 'sed'... /bin/sed
Checking whether '/bin/sed' supports -i and -e... yes
Checking for 'bash'... /bin/bash
Checking for 'cut'... /usr/bin/cut
Checking for 'install'... /usr/bin/install
Checking for 'make'... /usr/bin/make
Checking for 'gcc'... /usr/bin/gcc
Checking for 'awk'... /usr/bin/awk
Checking for 'bison'... /usr/bin/bison
Checking for 'flex'... /usr/bin/flex
Checking for 'makeinfo'... /usr/bin/makeinfo
Checking for 'automake'... /usr/bin/automake
Checking for 'libtool'... /usr/bin/libtool
Checking for 'stat'... /usr/bin/stat
Checking for 'aria2c'... /usr/bin/aria2c
Checking for 'cvs'... /usr/bin/cvs
Checking for 'patch'... /usr/bin/patch
Checking for 'tar'... /bin/tar
Checking for 'gzip'... /bin/gzip
Checking for 'bzip2'... /bin/bzip2
Checking for 'lzma'... /usr/bin/lzma
Checking for 'readlink'... /bin/readlink
Checking for 'ncurses/ncurses.h'... no
Checking for 'ncurses/curses.h'... no
Checking for 'ncurses.h'... yes
Checking for 'libncursesw.so'... no
Checking for 'libncursesw.a'... no
Checking for 'libncursesw.dylib'... no
Checking for 'libncurses.so'... yes
Computing version string... 1.7.2
Building up Makefile... done
crosstool-NG configured as follows:
PREFIX='/opt/crosstool-ng-1.7.2'
BINDIR='/opt/crosstool-ng-1.7.2/bin'
LIBDIR='/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
DOCDIR='/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
MANDIR='/opt/crosstool-ng-1.7.2/share/man'
Now run:
make
make install
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
SED 'docs/ct-ng.1'
GZIP 'docs/ct-ng.1.gz'
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make install
INST 'ct-ng'
RMDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2/'
MKDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
INST 'config/'
INST 'kconfig/'
INST 'patches/'
INST 'scripts/'
INST 'steps.mk'
INST 'paths.mk'
INST 'samples/'
INST 'docs/CREDITS'
INST 'docs/overview.txt'
INST 'ct-ng.1.gz'
For auto-completion, do not forget to install 'ct-ng.comp'
into you 'bash_completion.d'
lym@localhost:/work/crosstool-ng-1.7.2$
lym@localhost:/work/crosstool-ng-1.7.2$ ls -l
total 2044
-rwxrwxrwx 1 root root 1241 2010-07-31 06:45 bash_completion.d
-rwxrwxrwx 1 root root 1979602 2008-11-02 14:37 bison-2.4.tar.gz
drwxrwxrwx 10 root root 4096 2010-07-31 00:05 config
-rwxrwxrwx 1 root root 14944 2010-07-29 15:18 configure
drwxrwxrwx 2 root root 4096 2010-07-31 00:05 contrib
-rwxrwxrwx 1 root root 2517 2010-07-29 15:18 COPYING
-rwxr-xr-x 1 root root 4732 2010-08-01 07:09 ct-ng
-rwxrwxrwx 1 root root 1241 2010-07-29 15:18 ct-ng.comp
-rwxrwxrwx 1 root root 4649 2010-07-29 15:18 ct-ng.in
drwxrwxrwx 2 root root 4096 2010-07-31 06:05 docs
drwxrwxrwx 3 root root 4096 2010-07-31 00:05 kconfig
lrwxrwxrwx 1 root root 7 2010-07-31 00:05 LICENSES -> COPYING
drwxrwxrwx 3 root root 4096 2010-07-31 00:05 licenses.d
-rwxrwxrwx 1 root root 8184 2010-08-01 07:09 Makefile
-rwxrwxrwx 1 root root 8082 2010-07-29 15:18 Makefile.in
drwxrwxrwx 18 root root 4096 2010-07-31 00:05 patches
-rwxrwxrwx 1 root root 122 2010-07-31 06:05 paths.mk
-rwxrwxrwx 1 root root 783 2010-07-29 15:18 README
drwxrwxrwx 36 root root 4096 2010-07-31 00:05 samples
drwxrwxrwx 3 root root 4096 2010-07-31 06:05 scripts
-rwxrwxrwx 1 root root 2300 2010-07-29 15:18 steps.mk
-rwxrwxrwx 1 root root 810 2010-07-29 15:18 TODO
lym@localhost:/work/crosstool-ng-1.7.2$ cd bash_completion.d
bash: cd: bash_completion.d: Not a directory
lym@localhost:/work/crosstool-ng-1.7.2$ clear
lym@localhost:/work/crosstool-ng-1.7.2$ sudo ./configure --prefix=/opt/crosstool-ng-1.7.2
Checking for 'grep'... /bin/grep
Checking whether '/bin/grep' supports -E... yes
Checking for 'sed'... /bin/sed
Checking whether '/bin/sed' supports -i and -e... yes
Checking for 'bash'... /bin/bash
Checking for 'cut'... /usr/bin/cut
Checking for 'install'... /usr/bin/install
Checking for 'make'... /usr/bin/make
Checking for 'gcc'... /usr/bin/gcc
Checking for 'awk'... /usr/bin/awk
Checking for 'bison'... /usr/bin/bison
Checking for 'flex'... /usr/bin/flex
Checking for 'makeinfo'... /usr/bin/makeinfo
Checking for 'automake'... /usr/bin/automake
Checking for 'libtool'... /usr/bin/libtool
Checking for 'stat'... /usr/bin/stat
Checking for 'aria2c'... /usr/bin/aria2c
Checking for 'cvs'... /usr/bin/cvs
Checking for 'patch'... /usr/bin/patch
Checking for 'tar'... /bin/tar
Checking for 'gzip'... /bin/gzip
Checking for 'bzip2'... /bin/bzip2
Checking for 'lzma'... /usr/bin/lzma
Checking for 'readlink'... /bin/readlink
Checking for 'ncurses/ncurses.h'... no
Checking for 'ncurses/curses.h'... no
Checking for 'ncurses.h'... yes
Checking for 'libncursesw.so'... no
Checking for 'libncursesw.a'... no
Checking for 'libncursesw.dylib'... no
Checking for 'libncurses.so'... yes
Computing version string... 1.7.2
Building up Makefile... done
crosstool-NG configured as follows:
PREFIX='/opt/crosstool-ng-1.7.2'
BINDIR='/opt/crosstool-ng-1.7.2/bin'
LIBDIR='/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
DOCDIR='/opt/crosstool-ng-1.7.2/share/doc/ct-ng-1.7.2'
MANDIR='/opt/crosstool-ng-1.7.2/share/man'
Now run:
make
make install
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make
SED 'ct-ng'
SED 'scripts/crosstool-NG.sh'
SED 'scripts/saveSample.sh'
SED 'scripts/showTuple.sh'
SED 'docs/ct-ng.1'
GZIP 'docs/ct-ng.1.gz'
lym@localhost:/work/crosstool-ng-1.7.2$ sudo make install
INST 'ct-ng'
RMDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2/'
MKDIR '/opt/crosstool-ng-1.7.2/lib/ct-ng-1.7.2'
INST 'config/'
INST 'kconfig/'
INST 'patches/'
INST 'scripts/'
INST 'steps.mk'
INST 'paths.mk'
INST 'samples/'
INST 'docs/CREDITS'
INST 'docs/overview.txt'
INST 'ct-ng.1.gz'
For auto-completion, do not forget to install 'ct-ng.comp'
into you 'bash_completion.d'
lym@localhost:/work/crosstool-ng-1.7.2$
作者: kernelshell 发布时间: 2010-08-01
你何必这样麻烦呢
你可以直接去下个别人已经编译好的解压就可以了阿
你可以直接去下个别人已经编译好的解压就可以了阿
作者: YT11 发布时间: 2010-08-19
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28