LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Ubuntu damaged after dbus build (https://www.linuxquestions.org/questions/linux-software-2/ubuntu-damaged-after-dbus-build-765586/)

prushik 10-30-2009 10:03 AM

Ubuntu damaged after dbus build
 
I rebuilt and installed dbus from source because I was trying to build the development release of Enlightenment. And that worked, I got Enlightenment working correctly inside of Gnome. Once. It worked great till I rebooted my computer. After that I could only boot in single user mode. I remounted my hard drive as read-write, recompiled dbus again and rebooted and that time it came up to a command line login screen, not single user mode. I pressed alt-f8 to see my boot messages and it was frozen after Timidity++. So I figured that the issue had to do with dbus, I configured it wrong or something. So I used apt-get to install my old dbus from the karmic repositories, I reinstalled dbus and dbus-x11. I rebooted my pc after that and now it only boots in single user mode again, and sometimes the kernel panics. So right now I'm compiling the dev version of dbus and installing it (via chroot). I do not have high hopes.
Anybody know what the problem is or how to fix it?

knudfl 10-30-2009 11:55 AM

No problem having more than one version of dbus.
But it is not allowed in a system path like /usr/ or /usr/local/ .
And the system version should not be changed.

cd dbus-1.2.16/ , ( or is it 1.3 ? )
./configure --prefix=/usr/local/dbus1216
.. is a way to install dbus ( or glib2, gtk2 ..
whatever is needed in more than one version.)

Say the application using this dbus, is a binary 'e17'.
Change the file name to e.g. 'e17.bin' ,
and make a start script , by name 'e17' :
line 1 : #!/bin/sh
line 2 : export LD_LIBRARY_PATH=/usr/local/dbus1216/lib
line 3 : exec e17.bin

... chmod +x e17 , sudo cp e17 /usr/local/bin/ .
.....

And the good news : dbus has an uninstall function.
You will need the source dbus-1.2.16/ again ...
and configure with the same prefix ...
and then : make && sudo make uninstall
.....
And you will of course have to reinstall the correct
system version again : sudo apt-get install dbus .
.....

prushik 11-03-2009 08:22 AM

Quote:

Originally Posted by knudfl (Post 3738137)
No problem having more than one version of dbus.
But it is not allowed in a system path like /usr/ or /usr/local/ .
And the system version should not be changed.

cd dbus-1.2.16/ , ( or is it 1.3 ? )
./configure --prefix=/usr/local/dbus1216
.. is a way to install dbus ( or glib2, gtk2 ..
whatever is needed in more than one version.)

Say the application using this dbus, is a binary 'e17'.
Change the file name to e.g. 'e17.bin' ,
and make a start script , by name 'e17' :
line 1 : #!/bin/sh
line 2 : export LD_LIBRARY_PATH=/usr/local/dbus1216/lib
line 3 : exec e17.bin

... chmod +x e17 , sudo cp e17 /usr/local/bin/ .
.....

And the good news : dbus has an uninstall function.
You will need the source dbus-1.2.16/ again ...
and configure with the same prefix ...
and then : make && sudo make uninstall
.....
And you will of course have to reinstall the correct
system version again : sudo apt-get install dbus .
.....

Ok well I still don't have a working system. I messed it up more, but now I got it back to where it was, booting to the console. I'm running intrepid live CD now, chrooted into my old system. I used debootstrap to replace the base userspace, thats what messed it up more, because i didnt do it right, but then I did it again and it worked, but my system still isnt working. So I just took your advice and used the dbus uninstall function. I have one question though, do I have to make before I make uninstall? That seems really odd to me. I uninstalled both the one in /usr/ and /usr/local/ and reinstalled it in /usr/. I will try to boot in a little bit and see how it turns out.

knudfl 11-04-2009 08:48 AM

Quote:

I have one question though,
do I have to make before I make uninstall?
I do not remember why I wrote / used
"make && sudo make uninstall"

By just guessing , I'd says this :
./configure && sudo make uninstall
.. if the files are in /usr/local/
.....
But anyway : the 'make' run is quick with dbus, so why not do it ?
.....


All times are GMT -5. The time now is 01:22 PM.