osrm-backend: Profile profiles/car.lua not found!
I’m trying to extract a map using osrm-extract map.osm I have to symbolic links in the working directory. One to osrm-backend/profiles/lib. One to osrm-backend/profiles/car.lua named profile.lua. And I am getting the error [error] Profile profiles/car.lua not found!. Any help would be appreciated!
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (8 by maintainers)
you pass the path to the profile file when running osrm-extract:
osrm-extract berlin-latest.osm.pbf -p profiles/car.lua
in the above case, it’s a relative path, ie. relative from the folder you’re in when running osrm-extract. the above command should work if you cloned the osrm-backend repo and are in the root folder when running osrm-extract, since the repo contains profiles/car.lua.
you can also pass an absolute path, e.g. -p /home/myuser/myprofiles/car.lua. you would have to adjust to the acual location of your car.lua file.
@billystalnaker Any reason you can’t just run
osrm-extract -p wherever/profiles/car.lua map.osm?I had the same problem. In my case, my file structure was looking like this:
I was running the command in
my-projectand I specified the path to thecar.lua:That worked and generated
my-map.osrm. Then I ran:Those steps didn’t work for me…
[error] Profile profiles/car.lua not found!If you are not going to explain, or try to resolve the problem, please don’t answer.
Yeah that article is super outdated. Don’t use it. I tried to get them to update it once but it has to go through review process, needs to get tested on their infrastructure etc.
Please use the Wiki https://github.com/Project-OSRM/osrm-backend/wiki
Closing as not actionable on our side.
it’s in the osrm-backend repo: https://github.com/Project-OSRM/osrm-backend/tree/master/profiles. if you clone the repo, you get all files, including the profiles.