user8908459
user8908459

Reputation: 577

Running autotools in Windows (MinGW)

I am trying to build the shapelib from source on Windows. The library uses autotools. I have MinGW installed with the appropriate packages. When I run

C:\MinGW\msys\1.0\bin\sh autogen.sh

it outputs

autogen.sh: line 4: readlink: command not found
autogen.sh: line 4: dirname: command not found
**Error**: Directory `' does not look like the top-level package directory

I don't expect readlink to work with Windows so I just skipped right to

C:\MinGW\msys\1.0\bin\sh configure

However, that also throws errors

configure: line 478: sed: command not found
configure: line 477: expr: command not found
configure: line 478: sed: command not found
configure: line 492: sed: command not found
: error: cannot create .lineno; rerun with a POSIX shell

Is there any hope of getting this to compile on windows? Am I missing something obvious? I double checked and the sed package is installed.

enter image description here

Upvotes: 1

Views: 9126

Answers (1)

user8908459
user8908459

Reputation: 577

Problem solved. My MinGW install was corrupted. I removed MinGw and installed it again. Now autogen.sh runs fine.

Upvotes: 5

Related Questions