Osrm-backend: Profile profiles/car.lua not found!

Created on 16 Feb 2017  路  20Comments  路  Source: Project-OSRM/osrm-backend

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!

Most helpful comment

@billystalnaker Any reason you can't just run osrm-extract -p wherever/profiles/car.lua map.osm ?

All 20 comments

@billystalnaker Any reason you can't just run osrm-extract -p wherever/profiles/car.lua map.osm ?

@danpat No reason at all, I'm just following this article https://www.digitalocean.com/community/tutorials/how-to-set-up-an-osrm-server-on-ubuntu-14-04 and honestly I don't really know how to use the service other than what I'm reading here and googling. I tried to run man osrm-extract but there are no man pages for it. Is there a documentation page foreach command somewhere?

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 seems like you're also using an old version

https://github.com/Project-OSRM/osrm-backend/pull/3554

changes the default to profiles/car.lua and

https://github.com/Project-OSRM/osrm-backend/pull/3510

removes the root symlink.

Please use the latest stable release. Docker images if you can.

@daniel-j-h, @danpat I thought I cloned master using git clone https://github.com/Project-OSRM/osrm-backend.git is this not correct?

Yes, it will give you a development version though, from which we cut stable releases every other months.

I still not knowing what to do to solve this same problem....

I believe the problem for me was not specifying the exact path of the profile from the current working directory.

Quickstart:

wget http://download.geofabrik.de/europe/germany/berlin-latest.osm.pbf

osrm-extract berlin-latest.osm.pbf -p profiles/car.lua
osrm-contract berlin-latest.osrm
osrm-routed berlin-latest.osrm

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.

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.

But the problem is that car.lua it doesn't exist. And i don't know what to do to create it.

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.

I use the windows binaries. Because it says that windows is no longer compiling in all the PCs. I will take a look at that, thx.

hello,after i run it on my local file successfully, how could i set up server on nginx ,is there a documents to read ?

I had the same problem. In my case, my file structure was looking like this:

 - osrm-backend
   - profiles
     - car.lua
     ...
 - my-project
   - my-map.osm.pbf

I was running the command in my-project and I specified the path to the car.lua:

osrm-extract my-map.osm.pbf -p ../osrm-backend/profiles/car.lua

That worked and generated my-map.osrm. Then I ran:

osrm-contract my-map.osrm

In the context of a Node.js app, after doing more progress, I realized that the osrm-extract is located in the node_modules/osrm/lib/osrm-extract (so, no need to build osrm-backend manually).

./node_modules/osrm/lib/binding/osrm-extract my-map.osm.pbf -p ./node_modules/osrm/profiles/car.lua

From osrm-backend folder, the following command seems to work : ./build/osrm-extract ./build/france-latest.osm.pbf -p profiles/car.lua

I had the same problem. In my case, my file structure was looking like this:

 - osrm-backend
   - profiles
     - car.lua
     ...
 - my-project
   - my-map.osm.pbf

I was running the command in my-project and I specified the path to the car.lua:

osrm-extract my-map.osm.pbf -p ../osrm-backend/profiles/car.lua

That worked and generated my-map.osrm. Then I ran:

osrm-contract my-map.osrm

you saved my life

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rachha picture rachha  路  4Comments

ltsstar picture ltsstar  路  5Comments

AliKarami picture AliKarami  路  3Comments

stvno picture stvno  路  3Comments

brunosan picture brunosan  路  5Comments