After "make install" mir_demo_server cannot find shared object file in /usr/local/lib
Bug #1522836 reported by
Dimitris Pliatsios
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mir |
Fix Released
|
Medium
|
Alan Griffiths | ||
mir (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I used this documentation for building: http://
When I run "sudo mir_demo_server", I get the following error:
"Error:
"sudo which mir_demo_server "output:
/usr/local/
whereis output: "libmir_
Related branches
lp:~alan-griffiths/mir/fix-1522836
- Kevin DuBois (community): Approve
- Daniel van Vugt: Abstain
- PS Jenkins bot (community): Approve (continuous-integration)
- Alberto Aguirre (community): Approve
-
Diff: 49 lines (+29/-4)1 file modifieddoc/building_source_for_pc.md (+29/-4)
Changed in mir: | |
status: | Triaged → In Progress |
assignee: | nobody → Alan Griffiths (alan-griffiths) |
Changed in mir: | |
milestone: | none → 0.19.0 |
Changed in mir: | |
status: | Fix Committed → In Progress |
status: | In Progress → Fix Committed |
Changed in mir: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The significant step (compared to our usual ways of invoking Mir) appears to be:
$ make install
What appears to be happening is that /usr/local/lib/ isn't being searched by dlopen() when loading libmir_ demo_server_ loadable. so. We should probably update the discussion following this install command.
As a workaround it should be possible to:
/1/ run the Mir executable from the build directory. E.g.
$ sudo bin/mir_demo_server
/2/ Add LD_LIBRARY_ PATH=/usr/ local/lib/ e.g.
$ sudo LD_LIBRARY_ PATH=/usr/ local/lib/ bin/mir_demo_server
Note that option 1 is how we typically run Mir during development, and doesn't need Mir to be installed.