How to Fix error “autoreconf: failed to run autopoint: No such file or directory” on CentOS


On CentOS, when executing “autoreconf -i” command in some repository, it prompts following error:

[root@tutorialspots ~]# autoreconf -i
Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 345.
autoreconf: failed to run autopoint: No such file or directory
autoreconf: autopoint is needed because this package uses Gettext

autoreconf error

The solution is installing gettext-tools:

yum install -y gettext-devel

result:

[root@s126368 ladspa]# yum install -y gettext-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.mirror.lstn.net
 * epel: fedora-epel.mirror.lstn.net
 * extras: mirrors.usinternet.com
 * ius: dfw.mirror.rackspace.com
 * nux-dextop: mirror.li.nux.ro
 * remi-safe: mirror.bebout.net
 * updates: mirror.mobap.edu
Resolving Dependencies
--> Running transaction check
---> Package gettext-devel.x86_64 0:0.19.8.1-2.el7 will be installed
--> Processing Dependency: gettext-common-devel = 0.19.8.1-2.el7 for package: gettext-devel-0.19.8.1-2.el7.x86_64
--> Running transaction check
---> Package gettext-common-devel.noarch 0:0.19.8.1-2.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package                    Arch         Version               Repository  Size
================================================================================
Installing:
 gettext-devel              x86_64       0.19.8.1-2.el7        base       320 k
Installing for dependencies:
 gettext-common-devel       noarch       0.19.8.1-2.el7        base       410 k

Transaction Summary
================================================================================
Install  1 Package (+1 Dependent package)

Total download size: 730 k
Installed size: 1.8 M
Downloading packages:
(1/2): gettext-common-devel-0.19.8.1-2.el7.noarch.rpm      | 410 kB   00:00
(2/2): gettext-devel-0.19.8.1-2.el7.x86_64.rpm             | 320 kB   00:00
--------------------------------------------------------------------------------
Total                                              2.4 MB/s | 730 kB  00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : gettext-common-devel-0.19.8.1-2.el7.noarch                   1/2
  Installing : gettext-devel-0.19.8.1-2.el7.x86_64                          2/2
  Verifying  : gettext-devel-0.19.8.1-2.el7.x86_64                          1/2
  Verifying  : gettext-common-devel-0.19.8.1-2.el7.noarch                   2/2

Installed:
  gettext-devel.x86_64 0:0.19.8.1-2.el7

Dependency Installed:
  gettext-common-devel.noarch 0:0.19.8.1-2.el7

Complete!
Segmentation fault

Then “autoreconf -i” works!

Leave a Reply