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  flavor, containing:

On Fri, Sep 17, 2010 at 11:28 AM, T Wegner  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-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  flavor, containing:

On Fri, Sep 17, 2010 at 11:28 AM, T Wegner  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 Tom Russo
On Fri, Sep 17, 2010 at 05:43:27PM -0500, we recorded a bogon-computron 
collision of the  flavor, containing:
> On Fri, Sep 17, 2010 at 11:28 AM, T Wegner  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


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  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

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

Was this file created Sep 16 at 21:05?

I opened the console and searched for the string "usr/local/lib" and  
found this as the first entry:


2010-09-16 17:49:25  sudo[47864] tomwegner : TTY=ttys000 ; PWD=/Users/ 
tomwegner/Downloads/shapelib-1.2.10 ; USER=root ; COMMAND=/bin/cp  
libshp.a/usr/local/lib


followed by:

2010-09-16 17:49:52  sudo[47866] tomwegner : TTY=ttys000 ; PWD=/Users/ 
tomwegner/Downloads/shapelib-1.2.10 ; USER=root ; COMMAND=/usr/bin/ 
ranlib /usr/local/lib/libshp.a


which, if I am recalling correctly, is probably coinciding with the  
timing of my attempt to first run the instructions for the shapelib  
dowload and build. This would have been my first reception of the "not  
a directory" message.


I am not certain what you mean by checking "the directions up to this  
point . . ." as I am not aware of any directions that asked me to  
create a lib item prior to this step. Outside of yesterdays  
activities, I am quite certain I never used the terminal for anything.  
Perhaps it was created yesterday in the process of:


downloading the Developer Tools
Installing MacPorts
the running of "sudo /opt/local/bin/port selfupdate" which I thought  
was an online update of the MacPorts software
or the downloading/building of the MacPorts software "sudo /opt/local/ 
bin/port install curl imagemagick openmotif pcre db42 lcms proj gdal  
libpng libxml2".


Now that I revisited that in my mind, there was an error I made. I had  
typed . . . "openmotifpcre" . . . as one word; at the end of the  
process I received notice that no such item existed (or some such  
instruction) and looking at the printout, decided there should be a  
space there, so re-entered the command with only "openmotif pcre" in  
the install list, and that seemed to work fine. Not thinking that  
might be the source of the problem, but wanted to mention it as it was  
different than the procedure as laid out in the instructions. I  
noticed a lot of things were being done in the 3 or so hours it took  
for that original command to execute, but I would think if something  
went wrong in there, others would have run into it as well.


Where will I find information regarding who the owner and group should  
be and what the permissions should be?


I know nothing about command line, but . . . is it possible the  
command should have been:


sudo cp libshp.a /usr/local/lib/libshp.a

instead of

sudo cp libshp.a /usr/local/lib

?


On Sep 17, 2010, at 11:43, Curt, WE7U wrote:


On Fri, 17 Sep 2010, T Wegner wrote:


-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


Correct.  It's a 63k file.  There shouldn't be a file there, but a
directory, so it will have to go.  Perhaps check the directions up
to this point to see where that was created and where things went
wrong.



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


Yes, but check the directions to see what the permissions should be
and who the owner & group should be that own the directory.


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


Shouldn't be.  I've never seen a Unix/Linux box with a "lib" file
there.  It's always a directory.



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


Well, something got put into the file, but it most likely was
intended to go into the lib/ directory as a file.


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 . . . .


Rgr.  I'm not a Mac guy, so there's only so much direct help I can
give.  I'll help when I know an answer or two, and keep quiet
otherwise.

--
Curt, WE7U. 
  APRS:  Where it's at!
 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


___
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 Curt, WE7U

On Fri, 17 Sep 2010, T Wegner wrote:


-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


Correct.  It's a 63k file.  There shouldn't be a file there, but a
directory, so it will have to go.  Perhaps check the directions up
to this point to see where that was created and where things went
wrong.



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


Yes, but check the directions to see what the permissions should be
and who the owner & group should be that own the directory.



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


Shouldn't be.  I've never seen a Unix/Linux box with a "lib" file
there.  It's always a directory.



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


Well, something got put into the file, but it most likely was
intended to go into the lib/ directory as a file.


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 . . . .


Rgr.  I'm not a Mac guy, so there's only so much direct help I can
give.  I'll help when I know an answer or two, and keep quiet
otherwise.

--
Curt, WE7U. 
   APRS:  Where it's at!
  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


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-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. 
   APRS:  Where it's at!
  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


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