[GH-ISSUE #886] s3fs autogen.sh install error #515

Closed
opened 2026-03-04 01:46:16 +03:00 by kerem · 9 comments
Owner

Originally created by @rosamdnb on GitHub (Jan 9, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/886

--- Make commit hash file -------
--- Finished commit hash file ---
--- Start autotools -------------
/bin/grep: line 1: lrwxrwxrwx.: command not found
autom4te: need GNU m4 1.4 or later: /usr/bin/M4
aclocal: error: echo failed with exit status: 1
--- Finished autotools ----------

I am attempting to install on a RedHat EC2 instance and get the above error.

What am I doing wrong?

Originally created by @rosamdnb on GitHub (Jan 9, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/886 --- Make commit hash file ------- --- Finished commit hash file --- --- Start autotools ------------- /bin/grep: line 1: lrwxrwxrwx.: command not found autom4te: need GNU m4 1.4 or later: /usr/bin/M4 aclocal: error: echo failed with exit status: 1 --- Finished autotools ---------- I am attempting to install on a RedHat EC2 instance and get the above error. What am I doing wrong?
kerem closed this issue 2026-03-04 01:46:16 +03:00
Author
Owner

@juliogonzalez commented on GitHub (Jan 9, 2019):

It seems to me that you don't have grep installed.

It's strange, since grep is even available at CentOS docker image as it's a basic tool, so maybe your instance got grepremoved for some reason.

Try to install it back with:
yum install grep

<!-- gh-comment-id:452775333 --> @juliogonzalez commented on GitHub (Jan 9, 2019): It seems to me that you don't have grep installed. It's strange, since `grep` is even available at CentOS docker image as it's a basic tool, so maybe your instance got `grep`removed for some reason. Try to install it back with: ```yum install grep```
Author
Owner

@rosamdnb commented on GitHub (Jan 9, 2019):

[root@Neo4J]# yum install grep
Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager, versionlock
This system is not registered with an entitlement server. You can use subscription-manager to register.
Package grep-2.20-3.el7.x86_64 already installed and latest version
Nothing to do

<!-- gh-comment-id:452781605 --> @rosamdnb commented on GitHub (Jan 9, 2019): [root@Neo4J]# yum install grep Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager, versionlock This system is not registered with an entitlement server. You can use subscription-manager to register. Package grep-2.20-3.el7.x86_64 already installed and latest version Nothing to do
Author
Owner

@juliogonzalez commented on GitHub (Jan 9, 2019):

It seems /bin/grep: line 1: lrwxrwxrwx.: command not found is misleading.

So far I am unable to reproduce this on CentOS7 with only the packages provided by the image + git + automake.

Is automake installed, as well as all required dependencies to build s3fs installed? It would also help if you tell the s3fs version you are trying to compile (I guess it's just master branch, from the Git repository) and the RHEL version

If you do not need s3fs from master, remember that the latest stable is available at the EPEL repositories.

<!-- gh-comment-id:452797241 --> @juliogonzalez commented on GitHub (Jan 9, 2019): It seems `/bin/grep: line 1: lrwxrwxrwx.: command not found` is misleading. So far I am unable to reproduce this on CentOS7 with only the packages provided by the image + git + automake. Is automake installed, as well as all required dependencies to build s3fs installed? It would also help if you tell the s3fs version you are trying to compile (I guess it's just `master` branch, from the Git repository) and the RHEL version If you do not need s3fs from `master`, remember that the latest stable is available at the EPEL repositories.
Author
Owner

@gaul commented on GitHub (Jan 9, 2019):

It looks like you are missing m4; try yum install m4.

<!-- gh-comment-id:452867773 --> @gaul commented on GitHub (Jan 9, 2019): It looks like you are missing `m4`; try `yum install m4`.
Author
Owner

@juliogonzalez commented on GitHub (Jan 9, 2019):

That could fix it yes. But I wonder how is it that aclocal is present (as autogen.sh can't even run without it), while m4 is absent.

m4 is a dependency of the package automake that provides aclocal.

So basically if you remove the package m4, automake and autoconf are removed, and then autogen.sh just complains about aclocal being missing:

[root@15f18b5fa25a s3fs-fuse]# yum remove -q m4  

===============================================================================================================================================================================================================================================================================
 Package                                                           Arch                                                            Version                                                                Repository                                                      Size
===============================================================================================================================================================================================================================================================================
Removing:
 m4                                                                x86_64                                                          1.4.16-10.el7                                                          @base                                                          513 k
Removing for dependencies:
 autoconf                                                          noarch                                                          2.69-11.el7                                                            @base                                                          2.2 M
 automake                                                          noarch                                                          1.13.4-3.el7                                                           @base                                                          1.7 M

Transaction Summary
===============================================================================================================================================================================================================================================================================
Remove  1 Package (+2 Dependent packages)

Is this ok [y/N]: y

root@15f18b5fa25a s3fs-fuse]# ./autogen.sh 
--- Make commit hash file -------
--- Finished commit hash file ---
--- Start autotools -------------
./autogen.sh: line 39: aclocal: command not found
--- Finished autotools ----------

@rosamdnb I am curious: how are you managing the devel toolchain? With yum, or just building everything (including automake, autoconfig, m4, etc) manually?

<!-- gh-comment-id:452881105 --> @juliogonzalez commented on GitHub (Jan 9, 2019): That could fix it yes. But I wonder how is it that `aclocal` is present (as `autogen.sh` can't even run without it), while `m4` is absent. `m4` is a dependency of the package `automake` that provides `aclocal`. So basically if you remove the package `m4`, `automake` and `autoconf` are removed, and then `autogen.sh` just complains about `aclocal` being missing: ``` [root@15f18b5fa25a s3fs-fuse]# yum remove -q m4 =============================================================================================================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================================================================================================== Removing: m4 x86_64 1.4.16-10.el7 @base 513 k Removing for dependencies: autoconf noarch 2.69-11.el7 @base 2.2 M automake noarch 1.13.4-3.el7 @base 1.7 M Transaction Summary =============================================================================================================================================================================================================================================================================== Remove 1 Package (+2 Dependent packages) Is this ok [y/N]: y root@15f18b5fa25a s3fs-fuse]# ./autogen.sh --- Make commit hash file ------- --- Finished commit hash file --- --- Start autotools ------------- ./autogen.sh: line 39: aclocal: command not found --- Finished autotools ---------- ``` @rosamdnb I am curious: how are you managing the devel toolchain? With `yum`, or just building everything (including automake, autoconfig, m4, etc) manually?
Author
Owner

@juliogonzalez commented on GitHub (Mar 23, 2019):

@rosamdnb is this fixed?

<!-- gh-comment-id:475879846 --> @juliogonzalez commented on GitHub (Mar 23, 2019): @rosamdnb is this fixed?
Author
Owner

@roonie007 commented on GitHub (Apr 5, 2019):

yum install automake solved this issue for me

<!-- gh-comment-id:480263518 --> @roonie007 commented on GitHub (Apr 5, 2019): `yum install automake` solved this issue for me
Author
Owner

@gaul commented on GitHub (Apr 6, 2019):

Please reopen if the provided suggestion does not resolve your issues. Also consider using the distribution packages to avoid having to compile s3fs yourself.

<!-- gh-comment-id:480483807 --> @gaul commented on GitHub (Apr 6, 2019): Please reopen if the provided suggestion does not resolve your issues. Also consider using the distribution packages to avoid having to compile s3fs yourself.
Author
Owner

@yuvenation commented on GitHub (Jul 23, 2021):

yum install automake worked for me too

<!-- gh-comment-id:885718429 --> @yuvenation commented on GitHub (Jul 23, 2021): yum install automake worked for me too
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#515
No description provided.