Java教程

安装libtoolize ubuntu入门之十二

本文主要是介绍安装libtoolize ubuntu入门之十二,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

安装xenomai3.1上报如下错误

rlk@ubuntu:xenomai-3.1$ ./scripts/
bootstrap          prepare-kernel.sh  wrap-link.sh       
rlk@ubuntu:xenomai-3.1$ ./scripts/bootstrap 
Can't exec "libtoolize": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345, <GEN3> line 6.
autoreconf: failed to run libtoolize: No such file or directory
autoreconf: libtoolize is needed because this package uses Libtool

解决方法

rlk@ubuntu:xenomai-3.1$ sudo apt-get install libtoolize
[sudo] password for rlk: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libtoolize

rlk@ubuntu:xenomai-3.1$ sudo apt-get install aptitude
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aptitude-common libcwidget3v5
Suggested packages:
  aptitude-doc-en | aptitude-doc debtags tasksel libcwidget-dev
The following NEW packages will be installed:
  aptitude aptitude-common libcwidget3v5
0 upgraded, 3 newly installed, 0 to remove and 722 not upgraded.
Need to get 2,569 kB of archives.
After this operation, 10.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.cn99.com/ubuntu bionic/main amd64 aptitude-common all 0.8.10-6ubuntu1 [1,014 kB]
Get:2 http://mirrors.cn99.com/ubuntu bionic/main amd64 libcwidget3v5 amd64 0.5.17-7 [286 kB]
Get:3 http://mirrors.cn99.com/ubuntu bionic/main amd64 aptitude amd64 0.8.10-6ubuntu1 [1,269 kB]
Fetched 2,569 kB in 2s (1,144 kB/s) 
Selecting previously unselected package aptitude-common.
(Reading database ... 266136 files and directories currently installed.)
Preparing to unpack .../aptitude-common_0.8.10-6ubuntu1_all.deb ...
Unpacking aptitude-common (0.8.10-6ubuntu1) ...
Selecting previously unselected package libcwidget3v5:amd64.
Preparing to unpack .../libcwidget3v5_0.5.17-7_amd64.deb ...
Unpacking libcwidget3v5:amd64 (0.5.17-7) ...
Selecting previously unselected package aptitude.
Preparing to unpack .../aptitude_0.8.10-6ubuntu1_amd64.deb ...
Unpacking aptitude (0.8.10-6ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu2.1) ...
Setting up aptitude-common (0.8.10-6ubuntu1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up libcwidget3v5:amd64 (0.5.17-7) ...
Setting up aptitude (0.8.10-6ubuntu1) ...
update-alternatives: using /usr/bin/aptitude-curses to provide /usr/bin/aptitude (aptitude) in auto mode
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for menu (2.1.47ubuntu2.1) ...

rlk@ubuntu:xenomai-3.1$ sudo aptitude install libtool
The following NEW packages will be installed:
  libltdl-dev{a} libtool 
0 packages upgraded, 2 newly installed, 0 to remove and 722 not upgraded.
Need to get 356 kB of archives. After unpacking 2,201 kB will be used.
Do you want to continue? [Y/n/?] y
Get: 1 http://mirrors.cn99.com/ubuntu bionic/main amd64 libltdl-dev amd64 2.4.6-2 [162 kB]
Get: 2 http://mirrors.cn99.com/ubuntu bionic/main amd64 libtool all 2.4.6-2 [194 kB]
Fetched 356 kB in 2s (196 kB/s)  
Selecting previously unselected package libltdl-dev:amd64.
(Reading database ... 266269 files and directories currently installed.)
Preparing to unpack .../libltdl-dev_2.4.6-2_amd64.deb ...
Unpacking libltdl-dev:amd64 (2.4.6-2) ...
Selecting previously unselected package libtool.
Preparing to unpack .../libtool_2.4.6-2_all.deb ...
Unpacking libtool (2.4.6-2) ...
Setting up libtool (2.4.6-2) ...
Setting up libltdl-dev:amd64 (2.4.6-2) ...
Processing triggers for man-db (2.8.3-2) ...
                                         
rlk@ubuntu:xenomai-3.1$

重新执行OK

rlk@ubuntu:xenomai-3.1$ ./scripts/bootstrap 
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'config'.
libtoolize: copying file 'config/libtool.m4'
libtoolize: copying file 'config/ltoptions.m4'
libtoolize: copying file 'config/ltsugar.m4'
libtoolize: copying file 'config/ltversion.m4'
libtoolize: copying file 'config/lt~obsolete.m4'
configure.ac:80: installing 'config/compile'
configure.ac:105: installing 'config/missing'
demo/alchemy/Makefile.am: installing 'config/depcomp'

参考
Can't exec "libtoolize" on Ubuntu
https://blog.csdn.net/liuhuahan/article/details/38235607

这篇关于安装libtoolize ubuntu入门之十二的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!