Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-20 Thread T Wegner

Jason, Curt, Tom

Thank you for your help with this problem. I have not heard back from  
any of you following my last post, so figured you must have thought I  
was on the right track, and plowed ahead.


Looking at your responses, I was able to patch up a solution, I  
believe. The instructions I followed left out a few other things as  
well, but since you mentioned this process was unnecessary, as  
shapelib is now incorporated into the Xastir download, I guess it's a  
moot point. Just for the record, however, the instructions after this  
snag were:


8)   sudo ranlib /usr/local/lib/libshp.a
9)   sudo mkdir /usr/local/include/libshp
10) sudo cp shapefil.h /usr/local/include/libshp

I needed to add
8.1) mkdir /usr/local/include

and a 9.1 step, changing the directory to the location I had the  
shapelib file so it could see the shapefil.h to copy it over.


No major headaches, but these instructions were specifically posted as  
being helpful for a Macintosh user who had never seen a command line  
before, and that was a bit off the mark, I'd say.


Thanks again.

Hoping you will be willing to help with my next problem, for which I  
will start a new thread.


73
Tom



On Sep 17, 2010, at 18:03, Tom Russo wrote:

On Fri, Sep 17, 2010 at 05:43:27PM -0500, we recorded a bogon- 
computron collision of the kg4...@gmail.com flavor, containing:

On Fri, Sep 17, 2010 at 11:28 AM, T Wegner tow...@tds.net wrote:
so I take it this means it's a file instead of a directory. Let me  
be

perfectly honest here . . . I have no idea what I'm doing. lol

Should I delete the lib file and make a lib directory here?


You'll have to, before lots of stuff will install correctly.


Is there something in that lib file of importance and I should not  
delete?


That's the $64k question.  I'd just rename it, then continue with the
build process (a make install will most likely create /usr/local/ 
lib

correctly for you).


From an earlier email, there was a description of how libshp.a was  
*copied*
to /usr/local/lib right before the attempted ranlib, but before /usr/ 
local/lib
was created.  I don't know what instructions Tom was following, but  
they're
not the instructions from Xastir's INSTALL document (which tell one  
to run
make lib_install in Shapelib's directory), but rather some  
platform-specific
instructions from elsewhere.  At any rate, libshp.a was simply  
cp'd into

place, not installed.

(BTW, Tom's note in which he shows the sudo log with a cp is:

http://www.mail-archive.com/xastir@lists.xastir.org/msg04153.html
)

Thus, there is a huge probability that the file /usr/local/lib
is nothing more than the contents of libshp.a.  Try running diff on  
the
/usr/local/lib file and the libshp.a that was supposed to have been  
installed
there.  I betcha dollars to donuts it simply prints nothing,  
indicating that
the files are identical.  Another clue would be that libshp.a in the  
shapelib

sources has the same size as /usr/local/lib.

Renaming /usr/local/lib and then doing an mkdir /usr/local/lib is a  
prudent
step that avoids deleting something permanently, but probably  
unnecessary
since it is almost certainly the case that /usr/local/lib (the plain  
file) is
just a copy of libshp.a.  Removing it and then doing an mkdir (with  
appropriate

chmod to get permissions right) will almost certainly be correct.

--
Tom RussoKM5VY   SAR502   DM64ux  http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236http://kevan.org/brain.cgi?DDTNM
The truth will set you free, but first it will piss you off.

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-17 Thread T Wegner

thanks for the response Jason  Curt.

using

ls -l

I get

-rw-r--r--  1 root  admin  63440 Sep 16 21:05 lib

so I take it this means it's a file instead of a directory. Let me be  
perfectly honest here . . . I have no idea what I'm doing. lol


Should I delete the lib file and make a lib directory here?
Is there something in that lib file of importance and I should not  
delete?

Is it possible this could be a permissions or location problem?

Curt - yes on the os - 10.5.8 is one behind current; no on the intel -  
I had looked with great longing at the precompiled by J.  
McDermond . . . alas. Checked your link to the Mac Notes; have  
substantial time invested in the MacPorts method and would like to  
follow through with it until it works or my head is pounding . . . .


73
Tom


On Sep 16, 2010, at 21:29, Jason KG4WSV wrote:


Sounds like /usr/local/lib is not a directory.  do

cd /usr/local
ls -l

and take a look at lib.  It should be a directory.  mine looks like

drwxr-xr-x  13 root  wheel   442 Jun 17 15:35 lib


see that d at the beginning of the line? it indicates a directory.
You could have gotten a file (- in the first slot), or maybe a
symbolic link (l in the first slot).  If it's a link, look at the
target to make sure it exists.

FYI, xastir now has shapelib built in, so you can get by without it.
I'd tell you not to worry about it, but if /usr/local/lib is broken
you'll need to get it fixed before you're done, even if you skip
shapelib.

-Jason
kg4wsv
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-17 Thread Jason KG4WSV
On Fri, Sep 17, 2010 at 11:28 AM, T Wegner tow...@tds.net wrote:
 so I take it this means it's a file instead of a directory. Let me be
 perfectly honest here . . . I have no idea what I'm doing. lol

 Should I delete the lib file and make a lib directory here?

You'll have to, before lots of stuff will install correctly.

 Is there something in that lib file of importance and I should not delete?

That's the $64k question.  I'd just rename it, then continue with the
build process (a make install will most likely create /usr/local/lib
correctly for you).

do

cd /usr/local
mv lib lib.wtf
file lib.wtf

That last command will (probably) give you a clue as to what sort of
file it is.  If mv give you permission denied, append sudo  to the
mv command and try again.

-Jason
kg4wsv
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-17 Thread T Wegner

picking through the responses piece by piece guys.

did this:

bash-3.2$ Diff /usr/local/lib /Users/tomwegner/Downloads/ 
shapelib-1.2.10/libshp.a


and got this:

bash-3.2$

so I plan to do this:

mv /usr/local/lib usr/local/whatsthis
mkdir /usr/local/lib

then start over with the instructions , skipping the first one (tar - 
xvzf shapelib-1.2.10.tar.gz) since I'm pretty sure that is a  
decompression step, and it's already been done.


cd shapelib-1.2.10
cc -c shpopen.c
cc -c shptree.c
cc -c dbfopen.c
ar cru libshp.a shpopen.o shptree.o dbfopen.o
sudo cp libshp.a /usr/local/lib
sudo ranlib /usr/local/lib/libshp.a
sudo mkdir /usr/local/include/libshp
sudo cp shapefil.h /usr/local/include/libshp

does that sound good?

I'm not sure what you mean by the chmod and what you think I should do  
with that.


thanks for the help


On Sep 17, 2010, at 18:03, Tom Russo wrote:

On Fri, Sep 17, 2010 at 05:43:27PM -0500, we recorded a bogon- 
computron collision of the kg4...@gmail.com flavor, containing:

On Fri, Sep 17, 2010 at 11:28 AM, T Wegner tow...@tds.net wrote:
so I take it this means it's a file instead of a directory. Let me  
be

perfectly honest here . . . I have no idea what I'm doing. lol

Should I delete the lib file and make a lib directory here?


You'll have to, before lots of stuff will install correctly.


Is there something in that lib file of importance and I should not  
delete?


That's the $64k question.  I'd just rename it, then continue with the
build process (a make install will most likely create /usr/local/ 
lib

correctly for you).


From an earlier email, there was a description of how libshp.a was  
*copied*
to /usr/local/lib right before the attempted ranlib, but before /usr/ 
local/lib
was created.  I don't know what instructions Tom was following, but  
they're
not the instructions from Xastir's INSTALL document (which tell one  
to run
make lib_install in Shapelib's directory), but rather some  
platform-specific
instructions from elsewhere.  At any rate, libshp.a was simply  
cp'd into

place, not installed.

(BTW, Tom's note in which he shows the sudo log with a cp is:

http://www.mail-archive.com/xastir@lists.xastir.org/msg04153.html
)

Thus, there is a huge probability that the file /usr/local/lib
is nothing more than the contents of libshp.a.  Try running diff on  
the
/usr/local/lib file and the libshp.a that was supposed to have been  
installed
there.  I betcha dollars to donuts it simply prints nothing,  
indicating that
the files are identical.  Another clue would be that libshp.a in the  
shapelib

sources has the same size as /usr/local/lib.

Renaming /usr/local/lib and then doing an mkdir /usr/local/lib is a  
prudent
step that avoids deleting something permanently, but probably  
unnecessary
since it is almost certainly the case that /usr/local/lib (the plain  
file) is
just a copy of libshp.a.  Removing it and then doing an mkdir (with  
appropriate

chmod to get permissions right) will almost certainly be correct.

--
Tom RussoKM5VY   SAR502   DM64ux  http://www.swcp.com/~russo/
Tijeras, NM  QRPL#1592 K2#398  SOC#236http://kevan.org/brain.cgi?DDTNM
The truth will set you free, but first it will piss you off.

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-17 Thread T Wegner
actually, guessing no need to re-execute the cc and ar commands as  
that is probably already done and once is enough?




from last post:


picking through the responses piece by piece guys.

did this:

bash-3.2$ Diff /usr/local/lib /Users/tomwegner/Downloads/ 
shapelib-1.2.10/libshp.a


and got this:

bash-3.2$

so I plan to do this:

mv /usr/local/lib usr/local/whatsthis
mkdir /usr/local/lib

then start over with the instructions , skipping the first one (tar - 
xvzf shapelib-1.2.10.tar.gz) since I'm pretty sure that is a  
decompression step, and it's already been done.


cd shapelib-1.2.10
cc -c shpopen.c
cc -c shptree.c
cc -c dbfopen.c
ar cru libshp.a shpopen.o shptree.o dbfopen.o
sudo cp libshp.a /usr/local/lib
sudo ranlib /usr/local/lib/libshp.a
sudo mkdir /usr/local/include/libshp
sudo cp shapefil.h /usr/local/include/libshp

does that sound good?

I'm not sure what you mean by the chmod and what you think I should  
do with that.


thanks for the help

___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-16 Thread Jason KG4WSV
Sounds like /usr/local/lib is not a directory.  do

cd /usr/local
ls -l

and take a look at lib.  It should be a directory.  mine looks like

drwxr-xr-x  13 root  wheel   442 Jun 17 15:35 lib


see that d at the beginning of the line? it indicates a directory.
You could have gotten a file (- in the first slot), or maybe a
symbolic link (l in the first slot).  If it's a link, look at the
target to make sure it exists.

FYI, xastir now has shapelib built in, so you can get by without it.
I'd tell you not to worry about it, but if /usr/local/lib is broken
you'll need to get it fixed before you're done, even if you skip
shapelib.

-Jason
kg4wsv
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir


Re: [Xastir] snag trying to install shapelib via source onto mac os X 10.5

2010-09-16 Thread Curt, WE7U

On Thu, 16 Sep 2010, T Wegner wrote:

I am in the process of installing Xastir on my Powerbook G4 (10.5.8) using 
the instructions at http://www.wx9grb.org/xastir/mac.htm which are attributed 
to Dana Rawding, N1OFZ (uses MacPorts for all but shapelib and geotiff).


Have you check out this area as well?

http://www.xastir.org/wiki/Installation_Notes#Mac_OSX



I tried:
cd /usr/local
ls

and can see 3 items in the local folder, one of which is lib

but when I did:
cd /usr/local/lib
ls

I get bash: cd: /usr/local/lib: Not a directory


Try ls -al /usr/local and see if lib is listed as drw for the
first few chars.  d is a directory.

Is that an Intel-processor Mac?  A reasonably new OS?  If so you
might try Jeremy McDermond's pre-compiled Xastir for the Mac.  I
don't know the OS requirements for running it.

--
Curt, WE7U. http://www.eskimo.com/~archer
   APRS:  Where it's at!http://www.xastir.org
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!
___
Xastir mailing list
Xastir@lists.xastir.org
http://lists.xastir.org/cgi-bin/mailman/listinfo/xastir