« Return to Thread: Bug Report: "make install" on Ubuntu should run "ldconfig" as final step

Re: Bug Report: "make install" on Ubuntu should run "ldconfig" as final step

by Jeremy Tregunna-2 :: Rate this Message:

Reply to Author | View in Thread


On 7-Jun-09, at 6:38 PM, Steve Dekorte wrote:

>
> On 2009-06-06, at 8:06 PM, dennisf486 wrote:
>
>> This build problem first occurred a couple years ago for me, and I
>> just noticed the latest code I pulled from github still has the same
>> issue.
>>
>> Steps to reproduce the problem:
>> - git-clone latest Io code from github
>> - make all
>> - sudo make install
>> - Try to execute "io" (either the newly installed version or the one
>> from _build/binaries, doesn't matter)
>> - Gives error saying it can't load the IoVM library.
>> - Try running "io_static" instead (io_static works)
>>
>> Temporary workaround:
>> - after installing, run "sudo ldconfig"
>> - Now run "io", and see that it now works
>
>
> Hi Dennis,
>
> Thanks for the issue report. Could you add something to the makefile
> to fix Ubuntu that doesn't break other systems? I'd be happy to accept
> a patch for that.

That's a bad idea Steve, as it depends on "sudo" being installed, AND  
the user actually having privileges to run it. It would break  
installation on systems that don't meet those dependencies that run  
even Ubuntu.

My suggestion would be a notice in the build process on Linux/Hurd  
targets that says "Your platform may require you to run ldconfig after  
installation before the io binary will work as expected. Consult the  
ldconfig manual page for any information if you are unfamiliar with  
the standard procedure." or something like that.

Regards,

Jeremy Tregunna
jeremy.tregunna@...



 « Return to Thread: Bug Report: "make install" on Ubuntu should run "ldconfig" as final step