dbus - 2

2014. 1. 23. 23:32 from Code

http://spaghetticoder.tistory.com/entry/dbus-1


glib 에 포함되어 있는 gio 라이브러리 중에 gdbus를 이용하여

server 예제 소스를 간단히 작성한 후에 돌려보는데..


자꾸 on_name_lost callback 이 호출되며 정상적인 초기화가 이루어지지 않았다.

소스가 잘못되었나.. 한참을 보다가.. dbus daemon이 안떠있다는 사실을 알았다..


번뜩 생각난 사실! homebrew 로 dbus 설치할때 나타난 메시지가 뭐였더라..


If this is your first install, automatically load on login with:

    mkdir -p ~/Library/LaunchAgents

    cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/

    launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist


If this is an upgrade and you already have the org.freedesktop.dbus-session.plist loaded:

    launchctl unload -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist

    cp /usr/local/Cellar/d-bus/1.6.18/org.freedesktop.dbus-session.plist ~/Library/LaunchAgents/

    launchctl load -w ~/Library/LaunchAgents/org.freedesktop.dbus-session.plist


To have launchd start d-bus at login:

    ln -sfv /usr/local/opt/d-bus/*.plist ~/Library/LaunchAgents

Then to load d-bus now:

    launchctl load ~/Library/LaunchAgents/homebrew.mxcl.d-bus.plist


그렇다. 저 짓거리를 해줘야 되나보다.

나는 맥북에 처음 설치해줬으니까.. 맨 위에 4줄가량의 가이드를 따라해줘 보았다.


따라 했는데 안되잖아.. 재부팅해서 데몬 떴나 보아도 안떴잖아.. 우린 안될꺼야 아마 ㅠㅠ

우선 macosx 에서 dbus-daemon 을 어떻게 띄우는지 부터 살펴보아야 겠다.


오늘은 일단 포기. 졸립다. 자야겠다.

'Code' 카테고리의 다른 글

dbus - 1  (0) 2014.01.15
Homebrew 설치기 - 2  (0) 2014.01.03
Homebrew 설치기 - 1  (0) 2014.01.02
Build and using glib in Mac os - failed!  (0) 2014.01.02
bash shell script #1  (0) 2013.12.01
Posted by 스파게티코더 :