Cannot execute imposm binary on iMac

97 views
Skip to first unread message

learner-boy

unread,
Aug 14, 2020, 3:02:00 PM8/14/20
to imposm
I am setting up my iMac to load OSM to postgres and found imposm as the current solution. However, I need advice how to get past this problem.

Steps
1. downloaded the binaries to Downloads folder: imposm-0.10.0-linux-x86-64.tar.gz, referred to a https://github.com/omniscale/imposm3
2. start the application like this: ./imposm import -help but gives error: -bash: ./imposm: cannot execute binary file
3. look at permissions. Appears to be executable:
-rwxrwxr-x@ 1 kjum  staff    22M Dec  5  2019 imposm
4. Mac About: Mac OS Catalina, V10.15.5

Q: Does the linux binary not run on my Mac? Thanks in advance for your help.

Eric Theise

unread,
Aug 15, 2020, 1:00:59 AM8/15/20
to imp...@googlegroups.com
learner-boy,

Quite a few years ago I wrote a blog post about working with Tegola using OS X. I won’t be offended if you scroll down and only read the brief Go & Imposm3 sections.


I’m not working in that way anymore but hopefully the post sets you off in the right direction.

Eric


--


--


_______________________________________________


Imposm mailing list


imp...@googlegroups.com


http://groups.google.com/group/imposm





---


You received this message because you are subscribed to the Google Groups "imposm" group.


To unsubscribe from this group and stop receiving emails from it, send an email to imposm+un...@googlegroups.com.


To view this discussion on the web visit https://groups.google.com/d/msgid/imposm/5527d443-1743-43b6-9a1a-0f6f8242cad9o%40googlegroups.com.


learner-boy

unread,
Aug 15, 2020, 12:36:52 PM8/15/20
to imposm
Thank you Eric. To be clear, before downloading the binaries I did find your post AND did try the steps in the https://github.com/omniscale/imposm3.
In both cases I got a compile error. I did not want to state two problems at once.
BTW - you'll note that (below) install uses 'cmd/imposm' and not 'cmd/imposm3' as documented in your blog. Apparently imposm was renamed.

Here is the compile error. I searched for geos_c.h in the github repo, but none was found. So I thought to try the binary download but in both cases I am at an impasse.

go install github.com/omniscale/imposm3/cmd/imposm
   # github.com/omniscale/imposm3/geom/geos
   go/src/github.com/omniscale/imposm3/geom/geos/coords.go:5:10: fatal error: 'geos_c.h' file not found
   #include "geos_c.h"
            ^~~~~~~~~~
   1 error generated.





On Friday, August 14, 2020 at 10:00:59 PM UTC-7, Eric Theise wrote:
learner-boy,

Quite a few years ago I wrote a blog post about working with Tegola using OS X. I won’t be offended if you scroll down and only read the brief Go & Imposm3 sections.


I’m not working in that way anymore but hopefully the post sets you off in the right direction.

Eric

On Fri, Aug 14, 2020 at 12:02 learner-boy <joyisf...@gmail.com> wrote:
I am setting up my iMac to load OSM to postgres and found imposm as the current solution. However, I need advice how to get past this problem.

Steps
1. downloaded the binaries to Downloads folder: imposm-0.10.0-linux-x86-64.tar.gz, referred to a https://github.com/omniscale/imposm3
2. start the application like this: ./imposm import -help but gives error: -bash: ./imposm: cannot execute binary file
3. look at permissions. Appears to be executable:
-rwxrwxr-x@ 1 kjum  staff    22M Dec  5  2019 imposm
4. Mac About: Mac OS Catalina, V10.15.5

Q: Does the linux binary not run on my Mac? Thanks in advance for your help.










--


--


_______________________________________________


Imposm mailing list


imp...@googlegroups.com


http://groups.google.com/group/imposm





---


You received this message because you are subscribed to the Google Groups "imposm" group.


To unsubscribe from this group and stop receiving emails from it, send an email to imp...@googlegroups.com.

learner-boy

unread,
Aug 15, 2020, 7:30:46 PM8/15/20
to imposm
I was able to find more advice how to deal with the compile error. For those interested see: https://github.com/omniscale/imposm3/issues/132
Reply all
Reply to author
Forward
0 new messages