Mac を使用しており、データをosm2pgsql
にインポートするためにインストールしたいと考えています。OSM
PostgreSQL
ターミナルで実行brew install osm2pgsql
します。(私はすでに実行しましたbrew update
)。
出力は次のとおりです。
==> Downloading https://github.com/openstreetmap/osm2pgsql/archive/v0.82.0.zip
Already downloaded: /Library/Caches/Homebrew/osm2pgsql-0.82.0.zip
==> ./autogen.sh
==> ./configure --with-proj=/usr/local/opt/proj
checking for fork... yes
checking for xml2-config... /usr/bin/xml2-config
checking for xml2 libraries... yes
checking for zlib compression library... no
configure: error: required library not found
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
そして、これが実行の出力ですbrew doctor
:
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libMonoPosixHelper.dylib
/usr/local/lib/libSFFileMonitor.32.dylib
/usr/local/lib/libSFIPC.32.dylib
/usr/local/lib/libSFIPC.I.dylib
/usr/local/lib/libSFsqlite3.7.4.dylib
/usr/local/lib/libSFSyncEngine.I.dylib
これらの dylib がわかりません。削除する必要がありますか?
linstall するにはどうすればよいosm2pgsql
ですか?
または、あきらめてosm2pgsql
他のツールを使用してOSM
データをにインポートする必要がありPostgreSQL
ますか?
[編集1]
http://www.zlib.net/によると、zlib はすでに Mac OS X の一部として含まれています。
そして、Googleで検索すると、これhttps://github.com/josegonzalez/homebrew-php/issues/205とこれhttps://github.com/josegonzalez/homebrew-php/issues/538が見つかりました
そこで、次の 2 つのコマンドを実行します。
brew tap homebrew/dupes
brew install zlib
結果出力は次のとおりです。
==> Downloading http://zlib.net/zlib-1.2.8.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/zlib/1.2.8
==> make install
==> Caveats
This formula is keg-only: so it was not symlinked into /usr/local.
Mac OS X already provides this software and installing another version in
parallel can cause all kinds of trouble.
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
LDFLAGS: -L/usr/local/opt/zlib/lib
CPPFLAGS: -I/usr/local/opt/zlib/include
==> Summary
zlib をインストールする必要はないようです。
もう一度実行brew install osm2pgsql
しますが、それでも機能しません。
[編集2]
homebrew をあきらめて、osm2pgsql をバイナリ インストーラー経由でインストールします。
参考までに:
http://wiki.openstreetmap.org/wiki/Osm2pgsql#Binary_Installer
https://github.com/openstreetmap/osm2pgsql/issues/15