[MacPorts] #20264: port and gnucash problem

MacPorts noreply at macports.org
Sun Jul 12 07:34:16 PDT 2009


#20264: port and gnucash problem
----------------------------------+-----------------------------------------
 Reporter:  jose.castro@…         |       Owner:  snc@…           
     Type:  defect                |      Status:  assigned        
 Priority:  Normal                |   Milestone:                  
Component:  ports                 |     Version:  1.7.1           
 Keywords:                        |        Port:                  
----------------------------------+-----------------------------------------

Comment(by jose.castro@…):

 Replying to [comment:2 snc@…]:
 Thank you very much. Using the launchctl with -w helped solve the problem,
 gnucash now loads fine.

 I modified my ~/.profile in the user that could not run commands from
 MacPorts by setting PATH. I did exactly what it is said there, but it
 still doesn't work. I still need to do /opt/local/bin/gnucash. I restarted
 Terminal and even restarted the computer to reinitialize my session, and
 it still doesn't work.

 So problem 2, solved, problem 1 not.
 > Replying to [ticket:20264 jose.castro@…]:
 > > I am a newbie with a new MacBook. I read previous tickets but they
 were too technical for me.
 > >
 > > On one user in the computer I installed MacPorts and then installed
 gnucash.
 > > These commands will not run in another user unless I run them like:
 > > `/opt/local/bin/port` or `/opt/local/bin/gnucash`
 > >
 > > Is there a way to fix this?
 >
 > Yes, you need to edit the new user's `~/.profile` to
 [http://guide.macports.org/#installing.shell.postflight set their PATH to
 include MacPorts].
 >
 > > Then I have a second problem. When trying to run gnucash I get:
 > > {{{
 > > Dynamic session lookup supported but failed: launchd did not provide a
 socket path, verify that org.freedesktop.dbus-session.plist is loaded!
 > > }}}
 > > If I run `launchctl load -F /Library/LaunchAgents/org.freedesktop
 .dbus-session.plist`
 > > then I have no problems, but I don't want to run this everytime.
 > >
 > > What can I do?
 >
 > The command you're running forces a load each time.  What you want to
 run is `launchctl load -w /Library/LaunchAgents/org.freedesktop.dbus-
 session.plist`
 >
 > From `man launchctl` you'll see that:
 >  1. -w removes the disabled key and write the configuration files back
 out to disk.
 >  1. -F forces the loading of the plist. Ignore the Disabled key.

-- 
Ticket URL: <http://trac.macports.org/ticket/20264#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list