gnucash 1.8 on a mac

William Cadwallader CaptCadwallader at GBIS.com
Mon Oct 30 00:35:49 EST 2006


See bottom of message.  I can get gnucash up and running, but I am  
still missing something.

This is the ls -l /sw/bin/gnucash result.

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ ls -l /sw/bin/ 
gnucash
-rwxr-xr-x   1 root  admin  141 Mar 23  2006 /sw/bin/gnucash

This is the result from the $PATH command.  Why isn't /sw/bin in the  
path.  It was the other night.  Things that go bump in the night.

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ $PATH
bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin: No such file or  
directory


Well, I went to terminal on the MAC, which is a bash shell and typed  
in $PATH.  THis is what I got:

Last login: Fri Oct 27 23:19:32 on ttyp1
Welcome to Darwin!
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ echo $PATH
/sw/bin:/sw/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

Why does one show the /sw/bin and /sw/sbin and the other not?  Talk  
about being over my head.  Could it be that one is showing the root  
path and the other is showing the user, meaning CAPTAIN cadwallader$  
path?

Fool that I am, I then tried:

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ SET $PATH =   
$PATH:/sw/bin:/sw/sbin
bash: SET: command not found
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

Then without the SET:


william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ PATH =   
$PATH:/sw/bin:/sw/sbin
bash: PATH: command not found
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

Then with a $

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ $PATH =   
$PATH:/sw/bin:/sw/sbin
bash: /usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin: No such file or  
directory
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

then:

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ export PATH=$ 
{PATH}:/sw/bin:/sw/sbin
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/sw/bin:/sw/sbin
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

I now have the /sw/bin and /sw/sbin in the path command in X11.

so I now try to run gnucash from X11.

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ gnucash
(0.0061s) [list] -*-helvetica-*-*-*-*-*-*-*-*-*-*-ISO8859-1 --> 64
(0.0011s) [load] -*-helvetica-medium-r-*-*-12-*-*-*-*-*-ISO8859-1 -->  
0x4fdba0
(0.0175s) [load] -*-helvetica-bold-r-*-*-12-*-*-*-*-*-ISO8859-1 -->  
0x4fe500
(0.0118s) [load] -*-helvetica-bold-r-*-*-24-*-*-*-*-*-ISO8859-1 -->  
0x4febb0
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

Eureka!!!!!!!

gnucash appears!

I try it a second time.  I never believe good luck, I have lived in  
Nevada too long.  It appears again.  I quit X11.  I then reopen X11  
and type in guncash.

and I get:

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ gnucash
bash: gnucash: command not found
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

command not found!

So try again with the sudo command:

william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ gnucash
bash: gnucash: command not found
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$ sudo export  
PATH=${PATH}:/sw/bin:/sw/sbin
Password:
sudo: export: command not found
william-cadwalladers-power-mac-g4:~ CAPTAINcadwallader$

It seems obvious to me that you are correct.  The problem is the path  
command.  The question is how to make changes in the X11 term so that
they are permanent.  I now have a work around, just type export PATH=$ 
{PATH}:/sw/bin:/sw/sbin and then gnucash when I want to run the program.
However this seems to be  a clunky work around.  Any mac X11 experts  
out there?  Looks like a trip to the bookstore to find an O'Reilly  
book is in my future.

All the best.

PS, sorry to bother you with all of this.


On Oct 28, 2006, at 8:08 AM, Derek Atkins wrote:

> ls -l /sw/bin/gnucash

William Cadwallader
PO Box 22575
Carson City, NV 89721
captcadwallader at gbis.com
775 720 8678






More information about the gnucash-user mailing list