[GRASSLIST:1119] r.mapcalc error

Hey there:

Anybody run across this error?

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library: /usr/local/lib/libreadline.4.dylib (compatibility version of user: 4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Bill
--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

Anybody run across this error?

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library:
/usr/local/lib/libreadline.4.dylib (compatibility version of user:
4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Some hints & guesses:

".dylib" means it is a Mac OS/X Dynamic Library & thus a OS/X specific
problem. It seems r.mapcalc was compiled with readline 4.2.0 headers
while the main system libary for readline on your computer is only 4.0.0.

You might have two versions on you computer, but I'd guess you are
trying to use binaries compiled on someone elses (more up to date) OS/X
system.

Binary install:
Try updating the system's realine libraries (fink?) to 4.2.0.

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

Thanks for the tips, Hamish. :wink: I've checked my install of readline (through Fink) and it is already at 4.3-5. Unless OS X has it's own, earlier version of readline that is superseeding the Fink readline, I don't think this is the problem. However, I have downloaded the readline 4.4.7 source and may also try using that instead of 4.3-5. If that doesn't work, then I will recompile using --with-readline as you suggest and see what happens.

Bill

> Anybody run across this error?

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library:
/usr/local/lib/libreadline.4.dylib (compatibility version of user:
4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Some hints & guesses:

".dylib" means it is a Mac OS/X Dynamic Library & thus a OS/X specific
problem. It seems r.mapcalc was compiled with readline 4.2.0 headers
while the main system libary for readline on your computer is only 4.0.0.

You might have two versions on you computer, but I'd guess you are
trying to use binaries compiled on someone elses (more up to date) OS/X
system.

Binary install:
Try updating the system's realine libraries (fink?) to 4.2.0.

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

Are there any pitfalls when recompiling GRASS? Do I simply run the configure/make/make install again? Does this overwrite the current installation or do I have to clean out the current installation before recompiling?

Thanks.
Bill

--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

Define pitfall.

Compilation usually goes well, although Grass compiles can be lengthy. You can for the most part ignore all the "warnings", but if compilation fails, for sure save the error message and send it back here, (if you don't have any luck figuring out the problem on your own). But, yes, configure/make/make install assuming you don't want to modify the Makefile manually for anything.

-jv

Bill Dickinson Jr wrote:

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

Are there any pitfalls when recompiling GRASS? Do I simply run the configure/make/make install again? Does this overwrite the current installation or do I have to clean out the current installation before recompiling?

Thanks.
Bill

Bill Dickinson Jr wrote:

> Source install:
> Try compiling without the --with-readline ./configure option, it
> isn't critical, I think.

Are there any pitfalls when recompiling GRASS? Do I simply run the
configure/make/make install again? Does this overwrite the current
installation or do I have to clean out the current installation
before recompiling?

If you re-run configure, run "make distclean" before recompiling.

"make install" should just overwrite any existing installation,
although it's probably worth removing the old installation prior to
running "make install" just to be safe.

--
Glynn Clements <glynn.clements@virgin.net>

Glynn Clements wrote:

> > Source install:
> > Try compiling without the --with-readline ./configure option, it
> > isn't critical, I think.
>
> Are there any pitfalls when recompiling GRASS? Do I simply run the
> configure/make/make install again? Does this overwrite the current
> installation or do I have to clean out the current installation
> before recompiling?

If you re-run configure, run "make distclean" before recompiling.

Clarification: run "make distclean" before re-running configure, as
"make distclean" deletes the files which configure creates. IOW, if
you intend change the configure options, start from scratch.

--
Glynn Clements <glynn.clements@virgin.net>

Hi all,

I am trying to change the code of a single module. Recompling takes me 10
minutes. How to recompile just one module and put it in the suitable
directory manually or automatically?

The procedures I am using is:
/grass5.0/src/display/src/gmake5
/grass5.0/make install

Daniel

On Wed, 10 Sep 2003, Glynn Clements wrote:

Bill Dickinson Jr wrote:

> > Source install:
> > Try compiling without the --with-readline ./configure option, it
> > isn't critical, I think.
>
> Are there any pitfalls when recompiling GRASS? Do I simply run the
> configure/make/make install again? Does this overwrite the current
> installation or do I have to clean out the current installation
> before recompiling?

If you re-run configure, run "make distclean" before recompiling.

"make install" should just overwrite any existing installation,
although it's probably worth removing the old installation prior to
running "make install" just to be safe.

--
Glynn Clements <glynn.clements@virgin.net>

Daniel Lau wrote:

I am trying to change the code of a single module. Recompling takes me 10
minutes. How to recompile just one module and put it in the suitable
directory manually or automatically?

Use gmake5. If you want the updated module to be installed, use
"gmake5 -i".

But if you have re-run configure with different options, you need to
delete any existing object files which that module uses in order for
the new configure options to have any effect. Depending upon which
options have changed, you may also need to delete and re-compile the
libraries (e.g. libgis) which the module uses.

--
Glynn Clements <glynn.clements@virgin.net>

Just for everyone's edification, here is where I am at on this error.

I tracked down one reference to readline errors under OS X -

  http://www.astro.washington.edu/owen/InstallingPython2.2.1OnJaguar.html

This document gives instructions for installing readline on 10.2 with a change in the /support/shobj-conf file. This change is recommended because "With 10.2, ncurses stuff was moved from the System library to external libraries and the process for dynamic libraries changed."

I downloaded readline 4.3-5, removed readline through my Fink installation, and went through the process of installing readline as outlined in this document. The install went fine, but the change did not fix the error I receive when trying to use r.mapcalc in GRASS 5.0.2. I still get:

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library: /usr/local/lib/libreadline.4.dylib (compatibility version of user: 4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Reading this, does it mean that GRASS 5.0.2 has something in it that is looking for 4.0.0 while my OS X version of readline is actually 4.2.0 (or is it the other way around)? If so, can someone look into fixing this somehow if the fix is worth the time?

For now, I will take Hamish's suggestion and recompile GRASS 5.0.2 *without* readline. :wink:

Thanks.
Bill

> Anybody run across this error?

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library:
/usr/local/lib/libreadline.4.dylib (compatibility version of user:
4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Some hints & guesses:

".dylib" means it is a Mac OS/X Dynamic Library & thus a OS/X specific
problem. It seems r.mapcalc was compiled with readline 4.2.0 headers
while the main system libary for readline on your computer is only 4.0.0.

You might have two versions on you computer, but I'd guess you are
trying to use binaries compiled on someone elses (more up to date) OS/X
system.

Binary install:
Try updating the system's realine libraries (fink?) to 4.2.0.

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

Final note on this error. I recompiled, from source, as Hamish suggested and r.mapcalc works fine now.

Thanks.
Bill

Just for everyone's edification, here is where I am at on this error.

I tracked down one reference to readline errors under OS X -

http://www.astro.washington.edu/owen/InstallingPython2.2.1OnJaguar.html

This document gives instructions for installing readline on 10.2 with a change in the /support/shobj-conf file. This change is recommended because "With 10.2, ncurses stuff was moved from the System library to external libraries and the process for dynamic libraries changed."

I downloaded readline 4.3-5, removed readline through my Fink installation, and went through the process of installing readline as outlined in this document. The install went fine, but the change did not fix the error I receive when trying to use r.mapcalc in GRASS 5.0.2. I still get:

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library: /usr/local/lib/libreadline.4.dylib (compatibility version of user: 4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Reading this, does it mean that GRASS 5.0.2 has something in it that is looking for 4.0.0 while my OS X version of readline is actually 4.2.0 (or is it the other way around)? If so, can someone look into fixing this somehow if the fix is worth the time?

For now, I will take Hamish's suggestion and recompile GRASS 5.0.2 *without* readline. :wink:

Thanks.
Bill

> Anybody run across this error?

GRASS 5.0.2 > r.mapcalc
dyld: r.mapcalc version mismatch for library:
/usr/local/lib/libreadline.4.dylib (compatibility version of user:
4.2.0 greater than library's version: 4.0.0)
Trace/BPT trap

Some hints & guesses:

".dylib" means it is a Mac OS/X Dynamic Library & thus a OS/X specific
problem. It seems r.mapcalc was compiled with readline 4.2.0 headers
while the main system libary for readline on your computer is only 4.0.0.

You might have two versions on you computer, but I'd guess you are
trying to use binaries compiled on someone elses (more up to date) OS/X
system.

Binary install:
Try updating the system's realine libraries (fink?) to 4.2.0.

Source install:
Try compiling without the --with-readline ./configure option, it isn't critical, I think.

Hamish

disclaimer: I have no idea.

--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov

--

Bill Dickinson
GIS Specialist
NASA Goddard Space Flight Center
Environmental & Safety Branch, Code 250
wdickins@pop700.gsfc.nasa.gov