[GRASS-user] dyld: Library not loaded

Hi all,

I get an error when I try to run v.in.gpsbabel…

v.in.gpsbabel -t input=/Users/dwight/t_Westfield.gpx output=Westfield format=gpx

Loading Tracks from </Users/dwight/t_Westfield.gpx>…
dyld: Library not loaded: /usr/lib/libexpat.1.dylib
Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/bin/gpsbabel
Reason: image not found
/Applications/GRASS-6.3.app/Contents/MacOS/scripts/v.in.gpsbabel: line 283: 27874 Trace/BPT trap
gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx -F “$TMP”.gpx
ERROR: Error loading data from gpsbabel

I have done this in the past without any problem, but four things that have changed since the last time I tried are: (1) upgraded to GRASS version 6.3, (2) switched from Lorenzo’s binary to William Kyngesburye’s, (3) upgraded to GPSBabel 1.3.5 and (4) switched to use SQLite instead of DBF.

From within a GRASS session, attempts to use gpsbabel to convert a track to a route fail with the same dyld: Library not loaded message, but not if I use an explicit path to my installed version of gpsbabel. It is in my PATH, and works fine if I run it from a fresh Terminal session. Does this mean it is an issue with gpsbabel within the GRASS package?

Any ideas on how I can fix this?

GRASS 6.3cvs
gpsbabel 1.3.5
Macintosh PPC
MacOS X 10.4.11

Thanks,

-Dwight

on 7/11/08 12:03 PM, Dwight Needels at needels@translucida.com wrote:

Hi all,

I get an error when I try to run v.in.gpsbabel...

v.in.gpsbabel -t input=/Users/dwight/t_Westfield.gpx output=Westfield
format=gpx

Loading Tracks from </Users/dwight/t_Westfield.gpx>...
dyld: Library not loaded: /usr/lib/libexpat.1.dylib
Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/bin/gpsbabel
Reason: image not found
/Applications/GRASS-6.3.app/Contents/MacOS/scripts/v.in.gpsbabel: line 283:
27874 Trace/BPT trap
gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx -F "$TMP".gpx
ERROR: Error loading data from gpsbabel

I have done this in the past without any problem, but four things that have
changed since the last time I tried are: (1) upgraded to GRASS version 6.3,
(2) switched from Lorenzo¹s binary to William Kyngesburye¹s, (3) upgraded to
GPSBabel 1.3.5 and (4) switched to use SQLite instead of DBF.

From within a GRASS session, attempts to use gpsbabel to convert a track to a
route fail with the same dyld: Library not loaded message, but not if I use an
explicit path to my installed version of gpsbabel. It is in my PATH, and works
fine if I run it from a fresh Terminal session. Does this mean it is an issue
with gpsbabel within the GRASS package?

Any ideas on how I can fix this?

GRASS 6.3cvs
gpsbabel 1.3.5
Macintosh PPC
MacOS X 10.4.11

Thanks,

-Dwight

Does anyone have any ideas for how I can get g.in.gpsbabel to work?

Thanks,

-Dwight

Sorry, I missed your first message. I realize that I include gpsbabel 1.3.4 in my GRASS, though 1.3.5 is in my todo list. I don't think v.in.gpsbabel has a problem, it's gpsbabel itself.

When you say you updated to gpsbabel 1.3.5, where did you get it or did you compile from source?

It almost looks like you got a gpsbabel binary that was compiled on Leopard (10.5) - Leopard includes /usr/lib/libexpat, but Tiger does not. Also, it looks like you replaced the gpsbabel in my GRASS binary with your updated one.

The gpsbabel I include in my GRASS binary has libexpat built into it so there is no need to worry about that. Try restoring my gpsbabel, or is there a specific need for the new 1.3.5?

On Jul 16, 2008, at 9:06 PM, Dwight Needels wrote:

on 7/11/08 12:03 PM, Dwight Needels at needels@translucida.com wrote:

Hi all,

I get an error when I try to run v.in.gpsbabel...

v.in.gpsbabel -t input=/Users/dwight/t_Westfield.gpx output=Westfield
format=gpx

Loading Tracks from </Users/dwight/t_Westfield.gpx>...
dyld: Library not loaded: /usr/lib/libexpat.1.dylib
Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/bin/gpsbabel
Reason: image not found
/Applications/GRASS-6.3.app/Contents/MacOS/scripts/v.in.gpsbabel: line 283:
27874 Trace/BPT trap
gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx -F "$TMP".gpx
ERROR: Error loading data from gpsbabel

I have done this in the past without any problem, but four things that have
changed since the last time I tried are: (1) upgraded to GRASS version 6.3,
(2) switched from Lorenzo’s binary to William Kyngesburye’s, (3) upgraded to
GPSBabel 1.3.5 and (4) switched to use SQLite instead of DBF.

From within a GRASS session, attempts to use gpsbabel to convert a track to a
route fail with the same dyld: Library not loaded message, but not if I use an
explicit path to my installed version of gpsbabel. It is in my PATH, and works
fine if I run it from a fresh Terminal session. Does this mean it is an issue
with gpsbabel within the GRASS package?

Any ideas on how I can fix this?

GRASS 6.3cvs
gpsbabel 1.3.5
Macintosh PPC
MacOS X 10.4.11

Thanks,

-Dwight

Does anyone have any ideas for how I can get g.in.gpsbabel to work?

Thanks,

-Dwight

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war

William, thanks for your reply.

on 7/16/08 10:44 PM, William Kyngesburye at woklist@kyngchaos.com wrote:

Sorry, I missed your first message. I realize that I include gpsbabel
1.3.4 in my GRASS, though 1.3.5 is in my todo list. I don't think
v.in.gpsbabel has a problem, it's gpsbabel itself.

When you say you updated to gpsbabel 1.3.5, where did you get it or
did you compile from source?

I downloaded the installer from gpsbabel.org (for Tiger and Leopard).

It almost looks like you got a gpsbabel binary that was compiled on
Leopard (10.5) - Leopard includes /usr/lib/libexpat, but Tiger does
not. Also, it looks like you replaced the gpsbabel in my GRASS binary
with your updated one.

I did not (intentionally) replace your version of gosbabel in the GRASS
binary. My recollection of events is that 1) I upgraded to Lorenazo's GRASS
version 6,3,0 from an older version, 2) I updated to the gpsbabel.org
GPSBabel 1.3.5, and 3) I installed your 6.3.0-1 (Tiger).

The gpsbabel I include in my GRASS binary has libexpat built into it
so there is no need to worry about that. Try restoring my gpsbabel,
or is there a specific need for the new 1.3.5?

I do not have a specific need for GPSBabel 1.3.5. I deleted the installer
receipt for your GRASS version and reinstalled 6.3.0-1 [same problem]. I
then downloaded and installed your 6.3.0-2 [same problem]. I also tried
commenting the gpsbabel path out of my $PATH statement [same problem].

When I view the contents of your GRASS package, the version of gpsbabel has
a modification date of 7/3/08 (8:15p). The version 1.3.5 from gpsbabel.org
has a modification date of 5/4/08.

I only get the dyld library error when I use GPSBabel from within GRASS
without an explicit path; it works fine when I use an explicit path to the
gps.babel.org version or when I use a fresh (non-GRASS) Terminal session.

On Jul 16, 2008, at 9:06 PM, Dwight Needels wrote:

on 7/11/08 12:03 PM, Dwight Needels at needels@translucida.com wrote:

Hi all,

I get an error when I try to run v.in.gpsbabel...

v.in.gpsbabel -t input=/Users/dwight/t_Westfield.gpx output=Westfield
format=gpx

Loading Tracks from </Users/dwight/t_Westfield.gpx>...
dyld: Library not loaded: /usr/lib/libexpat.1.dylib
Referenced from: /Applications/GRASS-6.3.app/Contents/MacOS/bin/
gpsbabel
Reason: image not found
/Applications/GRASS-6.3.app/Contents/MacOS/scripts/v.in.gpsbabel:
line 283:
27874 Trace/BPT trap
gpsbabel $TYPE -i $GIS_OPT_FORMAT $GPSdevice $PROGVERBOSE -o gpx -F
"$TMP".gpx
ERROR: Error loading data from gpsbabel

I have done this in the past without any problem, but four things
that have
changed since the last time I tried are: (1) upgraded to GRASS
version 6.3,
(2) switched from Lorenzo¹s binary to William Kyngesburye¹s, (3)
upgraded to
GPSBabel 1.3.5 and (4) switched to use SQLite instead of DBF.

From within a GRASS session, attempts to use gpsbabel to convert a
track to a
route fail with the same dyld: Library not loaded message, but not
if I use an
explicit path to my installed version of gpsbabel. It is in my
PATH, and works
fine if I run it from a fresh Terminal session. Does this mean it
is an issue
with gpsbabel within the GRASS package?

Any ideas on how I can fix this?

GRASS 6.3cvs
gpsbabel 1.3.5
Macintosh PPC
MacOS X 10.4.11

Thanks,

-Dwight

Does anyone have any ideas for how I can get g.in.gpsbabel to work?

Thanks,

-Dwight

_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no
particular pleasure I shall kill every ___ I can until the war is
over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of
the allied nations devoted an entire year exclusively to hating the
____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war

Any other ideas? Thanks, -Dwight

On Jul 17, 2008, at 8:53 PM, Dwight Needels wrote:

I do not have a specific need for GPSBabel 1.3.5. I deleted the installer
receipt for your GRASS version and reinstalled 6.3.0-1 [same problem]. I
then downloaded and installed your 6.3.0-2 [same problem]. I also tried
commenting the gpsbabel path out of my $PATH statement [same problem].

When I view the contents of your GRASS package, the version of gpsbabel has
a modification date of 7/3/08 (8:15p). The version 1.3.5 from gpsbabel.org
has a modification date of 5/4/08.

I only get the dyld library error when I use GPSBabel from within GRASS
without an explicit path; it works fine when I use an explicit path to the
gps.babel.org version or when I use a fresh (non-GRASS) Terminal session.

It's possible some version is first in your shell PATH somewhere. With GRASS running, whichever version is giving you problems, type in the Terminal window:

type gpsbabel

This will tell you which binary of gpsbabel is used by default.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.

on 7/17/08 10:23 PM, William Kyngesburye at woklist@kyngchaos.com wrote:

On Jul 17, 2008, at 8:53 PM, Dwight Needels wrote:

I do not have a specific need for GPSBabel 1.3.5. I deleted the
installer
receipt for your GRASS version and reinstalled 6.3.0-1 [same
problem]. I
then downloaded and installed your 6.3.0-2 [same problem]. I also
tried
commenting the gpsbabel path out of my $PATH statement [same problem].

When I view the contents of your GRASS package, the version of
gpsbabel has
a modification date of 7/3/08 (8:15p). The version 1.3.5 from
gpsbabel.org
has a modification date of 5/4/08.

I only get the dyld library error when I use GPSBabel from within
GRASS
without an explicit path; it works fine when I use an explicit path
to the
gps.babel.org version or when I use a fresh (non-GRASS) Terminal
session.

It's possible some version is first in your shell PATH somewhere.
With GRASS running, whichever version is giving you problems, type in
the Terminal window:

type gpsbabel

This will tell you which binary of gpsbabel is used by default.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

The equator is so long, it could encircle the earth completely once.

GRASS 6.3.0 (Meriden_GIS):~ > type gpsbabel
gpsbabel is hashed (/Applications/GRASS-6.3.app/Contents/MacOS/bin/gpsbabel)

Thanks, -Dwight

On Jul 17, 2008, at 9:38 PM, Dwight Needels wrote:

GRASS 6.3.0 (Meriden_GIS):~ > type gpsbabel
gpsbabel is hashed (/Applications/GRASS-6.3.app/Contents/MacOS/bin/gpsbabel)

Thanks, -Dwight

Huh? I don't know what "hashed" means. I don't get that on my Leopard GRASS. I don't have Tiger handy to test.

What about if you use the full path to the copy in my GRASS?

Hmmm..... I wonder if my gpsbabel binary is f'd for Tiger... AH! There's the problem! Looks like I need to update my GRASS binary. With all the copies lying around for build/staging/installed, I checked the wrong one.

Stay tuned for update...

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy

on 7/17/08 11:02 PM, William Kyngesburye at woklist@kyngchaos.com wrote:

On Jul 17, 2008, at 9:38 PM, Dwight Needels wrote:

GRASS 6.3.0 (Meriden_GIS):~ > type gpsbabel
gpsbabel is hashed (/Applications/GRASS-6.3.app/Contents/MacOS/bin/
gpsbabel)

Thanks, -Dwight

Huh? I don't know what "hashed" means. I don't get that on my
Leopard GRASS. I don't have Tiger handy to test.

What about if you use the full path to the copy in my GRASS?

Hmmm..... I wonder if my gpsbabel binary is f'd for Tiger... AH!
There's the problem! Looks like I need to update my GRASS binary.
With all the copies lying around for build/staging/installed, I
checked the wrong one.

Stay tuned for update...

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed
robot?

[Marvin] You think you have problems? What are you supposed to do if
you ARE a maniacally depressed robot? No, don't try and answer, I'm
50,000 times more intelligent than you and even I don't know the
answer...

- HitchHiker's Guide to the Galaxy

William,

Just to confirm... same error with explicit path to your gpsbabel (I hadn't
tried that yet).

I will let you know how the next build works out.

Thanks!!

-Dwight

New GRASS 6.3 build online.

On Jul 17, 2008, at 10:17 PM, Dwight Needels wrote:

Hmmm..... I wonder if my gpsbabel binary is f'd for Tiger... AH!
There's the problem! Looks like I need to update my GRASS binary.
With all the copies lying around for build/staging/installed, I
checked the wrong one.

Stay tuned for update...

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed robot?

[Marvin] You think you have problems? What are you supposed to do if you ARE a maniacally depressed robot? No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...

- HitchHiker's Guide to the Galaxy

That took care of the problem. Thanks!

on 7/18/08 8:43 PM, William Kyngesburye at woklist@kyngchaos.com wrote:

New GRASS 6.3 build online.

On Jul 17, 2008, at 10:17 PM, Dwight Needels wrote:

Hmmm..... I wonder if my gpsbabel binary is f'd for Tiger... AH!
There's the problem! Looks like I need to update my GRASS binary.
With all the copies lying around for build/staging/installed, I
checked the wrong one.

Stay tuned for update...

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

[Trillian] What are you supposed to do WITH a maniacally depressed
robot?

[Marvin] You think you have problems? What are you supposed to do if
you ARE a maniacally depressed robot? No, don't try and answer, I'm
50,000 times more intelligent than you and even I don't know the
answer...

- HitchHiker's Guide to the Galaxy