Skip to content

Instantly share code, notes, and snippets.

View zuo1188's full-sized avatar
🍀
Out sick

jingwei.zuo zuo1188

🍀
Out sick
View GitHub Profile
1.OSRM及前端工具安装部署与调试
1.1 OSRM安装
代码下载(https://github.com/Project-OSRM/osrm-backend)
安装依赖库
sudo apt install build-essential git cmake pkg-config \
libbz2-dev libstxxl-dev libstxxl1v5 libxml2-dev \
libzip-dev libboost-all-dev lua5.2 liblua5.2-dev libtbb-dev
编译安装
mkdir -p build
cd build
永久的开放需要的端口
sudo firewall-cmd --zone=public --add-port=3000/tcp --permanent
sudo firewall-cmd --reload
之后检查新的防火墙规则
firewall-cmd --list-all
sudo python /home/jingwei/.local/lib/python2.7/site-packages/pgadmin4/pgAdmin4.py
1. 启动elasticsearch
2. 启动API项目 及打开DEMO 准备数据测试
3. 修改 ~/pelias.json最后 sw中
"sw":{
"datapath": "/Users/hanzhongjian/mapdesign/data/xz"
}
将路径修改为 数据的路径即可
4. 开始修改sw项目中 sw2json/sw2json.py
参考http://pelias.io/install.html
1. 新建Install.sh,在其中增加:
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do
git clone https://github.com/pelias/${repository}.git # clone from Github
pushd $repository > /dev/null # switch into importer directory
git checkout production # or remove this line to stay with master
npm install # install npm dependencies
popd > /dev/null # return to code directory
done
参考http://pelias.io/install.html
1. 新建Install.sh,在其中增加:
for repository in schema api whosonfirst geonames openaddresses openstreetmap polylines; do
git clone https://github.com/pelias/${repository}.git # clone from Github
pushd $repository > /dev/null # switch into importer directory
git checkout production # or remove this line to stay with master
npm install # install npm dependencies
popd > /dev/null # return to code directory
done
mac安装osrm_backend:
brew install tbb
brew install libstxxl
brew install lua
cd osrm-backend
mkdir -p build
cd build
cmake ..
cmake --build .
@zuo1188
zuo1188 / gist:43a3a1d9399fec487f87b0213af3de8a
Created April 6, 2017 03:01
update gcc to 5.x on centos
sudo yum install centos-release-scl
sudo yum install devtoolset-4-gcc*
scl enable devtoolset-4 bash
which gcc
gcc --version