Opened 15 years ago
Closed 15 years ago
#20264 closed defect (invalid)
port and gnucash problem
Reported by: | jose.castro@… | Owned by: | nerdling (Jeremy Lavergne) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: |
Description (last modified by nerdling (Jeremy Lavergne))
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?
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?
Change History (10)
comment:1 Changed 15 years ago by nerdling (Jeremy Lavergne)
Description: | modified (diff) |
---|
comment:2 follow-up: 4 Changed 15 years ago by nerdling (Jeremy Lavergne)
Owner: | changed from macports-tickets@… to snc@… |
---|---|
Status: | new → assigned |
comment:3 Changed 15 years ago by jose.castro@…
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.
comment:4 Changed 15 years ago by jose.castro@…
Replying to 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 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 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:
- -w removes the disabled key and write the configuration files back out to disk.
- -F forces the loading of the plist. Ignore the Disabled key.
comment:5 follow-up: 6 Changed 15 years ago by mf2k (Frank Schima)
What is the result of the following command?
echo $PATH
comment:6 Changed 15 years ago by jose.castro@…
Replying to macsforever2000@…:
What is the result of the following command?
echo $PATH
The result is the following {{{ /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin }}}
comment:7 Changed 15 years ago by nerdling (Jeremy Lavergne)
That's the default path; that user is not picking up any changes to $PATH.
comment:8 follow-up: 9 Changed 15 years ago by nerdling (Jeremy Lavergne)
Were you able to get the path fixed?
comment:9 Changed 15 years ago by jose.castro@…
comment:10 Changed 15 years ago by tobypeterson
Resolution: | → invalid |
---|---|
Status: | assigned → closed |
This is a support issue, not a bug. Please contact the users list: http://lists.macosforge.org/mailman/listinfo/macports-users/
Replying to jose.castro@…:
Yes, you need to edit the new user's
~/.profile
to set their PATH to include MacPorts.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: