[gradsusr] Errors installing readline and ncurses
Hoop
hoop at colorado.edu
Mon Jun 16 23:04:54 EDT 2014
David Stanfel,
GADDIR should be an absolute path.
-Hoop
On 06/16/2014 08:28 PM, gradsusr-request at gradsusr.org wrote:
> Send gradsusr mailing list submissions to
> gradsusr at gradsusr.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://gradsusr.org/mailman/listinfo/gradsusr
> or, via email, send a message with subject or body 'help' to
> gradsusr-request at gradsusr.org
>
> You can reach the person managing the list at
> gradsusr-owner at gradsusr.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gradsusr digest..."
>
>
> Today's Topics:
>
> 1. Re: Errors installing readline and ncurses supplies
> (David Stanfel)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 16 Jun 2014 20:28:55 -0600
> From: David Stanfel <dstanfel at ualberta.ca>
> Subject: Re: [gradsusr] Errors installing readline and ncurses
> supplies
> To: GrADS Users Forum <gradsusr at gradsusr.org>
> Message-ID:
> <CADML8btfB6OfPeOT7-0iTvZ+9nGxzMkjxRNFBE5mfWtsrsgYNg at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> I downloaded and unpacked the files and changed the GADDIR directory. I
> still can't open the .nc file though. Here is the command line (in GrADS):
>
> ga-> sdfopen ocean_topaz_wc_btm.nc.0000
>
> Scanning self-describing file: ocean_topaz_wc_btm.nc.0000
>
> udunits(3): Couldn't open units database
> "University/Research_job/supplibs/udunits.dat": No such file or directory
>
> gadsdf: UDUNITS package initialization failure.
>
> ga-> quit
>
> GX Package Terminated
>
> dstanfel:bin ninjawarrior343$ cd
>
> dstanfel:~ ninjawarrior343$ cd University/Research_job/supplibs/
>
> dstanfel:supplibs ninjawarrior343$ ls
>
> font0.dat font3.dat hires tables
>
> font1.dat font4.dat lowres tarfiles
>
> font2.dat font5.dat mres udunits.dat
>
>
> You can see that udunits.dat is in the specified path. Where did I go wrong?
>
>
> Thanks,
>
>
> David
>
>
> On Mon, Jun 16, 2014 at 4:24 PM, Jennifer Adams <jma at cola.iges.org> wrote:
>
>> Take a look at the Downloads web page (
>> http://www.iges.org/grads/downloads.html) -- scroll down to the part
>> about "Supplementary Files" . The udunits file GrADS is looking for is in
>> data2.tar.gz.
>> --Jennifer
>>
>>
>>
>> On Jun 16, 2014, at 4:47 PM, David Stanfel wrote:
>>
>> Thanks for the reply,
>>
>> I downloaded that and tried to open a netcdf file (.nc) and got the
>> following result:
>>
>> ga-> sdfopen atmos_4xdaily_instant.nc
>> Scanning self-describing file: atmos_4xdaily_instant.nc
>> udunits(3): Couldn't open units database
>> "/usr/local/lib/grads/udunits.dat": No such file or directory
>> gadsdf: UDUNITS package initialization failure.
>>
>> How do I install the udunits package?
>>
>> Thanks,
>>
>> David
>>
>>
>> On Mon, Jun 16, 2014 at 2:26 PM, Jennifer Adams <jma at cola.iges.org> wrote:
>>
>>> Please try the pre-compiled binaries instead of building from source? the
>>> 10.7 build should work fine on Mavericks:
>>> ftp://cola.gmu.edu/grads/2.1/grads-2.1.a2-bin-darwin11.4.tar.gz
>>>
>>> -Jennifer
>>>
>>> On Jun 16, 2014, at 4:07 PM, David Stanfel wrote:
>>>
>>> Hello,
>>>
>>> I am new to GrADS and to the Unix language. I run Mac OS X Mavericks.
>>> When I tried to install the readline supplib I got the following error:
>>>
>>> mv tilde.o tilde.so
>>> rm -f compat.so
>>> gcc -c -DHAVE_CONFIG_H -I. -I.. -I.. -DRL_LIBRARY_VERSION='"5.0"' -g -O
>>> -fno-common -o compat.o ../compat.c
>>> mv compat.o compat.so
>>> rm -f libreadline.5.0.dylib
>>> gcc -dynamic -arch_only `/usr/bin/arch` -install_name
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.5.0.dylib
>>> -current_version 5.0 -compatibility_version 5 -v -o libreadline.5.0.dylib
>>> readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so
>>> complete.so bind.so isearch.so display.so signals.so util.so kill.so
>>> undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so
>>> xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so
>>> mbutil.so tilde.so compat.so -lncurses
>>> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
>>> Target: x86_64-apple-darwin13.1.0
>>> Thread model: posix
>>> clang: error: invalid argument '-compatibility_version 5' only allowed
>>> with '-dynamiclib'
>>> make[1]: *** [libreadline.5.0.dylib] Error 1
>>> make: [shared] Error 2 (ignored)
>>> /bin/sh ./support/mkinstalldirs
>>> /Users/ninjawarrior343/supplibs/src/readline/include \
>>> /Users/ninjawarrior343/supplibs/src/readline/include/readline
>>> /Users/ninjawarrior343/supplibs/src/readline/lib \
>>> /Users/ninjawarrior343/supplibs/src/readline/info
>>> /Users/ninjawarrior343/supplibs/src/readline/man/man3
>>> mkdir -p -- /Users/ninjawarrior343/supplibs/src/readline/include
>>> /Users/ninjawarrior343/supplibs/src/readline/include/readline
>>> /Users/ninjawarrior343/supplibs/src/readline/lib
>>> /Users/ninjawarrior343/supplibs/src/readline/info
>>> /Users/ninjawarrior343/supplibs/src/readline/man/man3
>>> for f in readline.h chardefs.h keymaps.h history.h tilde.h rlstdc.h
>>> rlconf.h rltypedefs.h; do \
>>> /usr/bin/install -c -m 644 ./$f
>>> /Users/ninjawarrior343/supplibs/src/readline/include/readline ; \
>>> done
>>> ( if test -d doc ; then \
>>> cd doc && \
>>> /Applications/Xcode.app/Contents/Developer/usr/bin/make
>>> infodir=/Users/ninjawarrior343/supplibs/src/readline/info DESTDIR= install;
>>> \
>>> fi )
>>> /bin/sh ../support/mkdirs
>>> /Users/ninjawarrior343/supplibs/src/readline/info
>>> /Users/ninjawarrior343/supplibs/src/readline/man/man3
>>> if test -n "" ; then \
>>> /bin/sh ../support/mkdirs ; \
>>> fi
>>> if test -f readline.info; then \
>>> /usr/bin/install -c -m 644 readline.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/readline.info; \
>>> else \
>>> /usr/bin/install -c -m 644 ./readline.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/readline.info; \
>>> fi
>>> if test -f rluserman.info; then \
>>> /usr/bin/install -c -m 644 rluserman.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/rluserman.info; \
>>> else \
>>> /usr/bin/install -c -m 644 ./rluserman.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/rluserman.info; \
>>> fi
>>> if test -f history.info; then \
>>> /usr/bin/install -c -m 644 history.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/history.info; \
>>> else \
>>> /usr/bin/install -c -m 644 ./history.info
>>> /Users/ninjawarrior343/supplibs/src/readline/info/history.info; \
>>> fi
>>> if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
>>> install-info
>>> --dir-file=/Users/ninjawarrior343/supplibs/src/readline/info/dir \
>>> /Users/ninjawarrior343/supplibs/src/readline/info/readline.info ; \
>>> install-info
>>> --dir-file=/Users/ninjawarrior343/supplibs/src/readline/info/dir \
>>> /Users/ninjawarrior343/supplibs/src/readline/info/history.info ; \
>>> install-info
>>> --dir-file=/Users/ninjawarrior343/supplibs/src/readline/info/dir \
>>> /Users/ninjawarrior343/supplibs/src/readline/info/rluserman.info ; \
>>> else true; fi
>>> /usr/bin/install -c -m 644 ./readline.3
>>> /Users/ninjawarrior343/supplibs/src/readline/man/man3/readline.3
>>> /usr/bin/install -c -m 644 ./history.3
>>> /Users/ninjawarrior343/supplibs/src/readline/man/man3/history.3
>>> if test -n "" ; then \
>>> if test -f readline.html; then \
>>> /usr/bin/install -c -m 644 readline.html /readline.html; \
>>> else \
>>> /usr/bin/install -c -m 644 ./readline.html /readline.html; \
>>> fi ; \
>>> if test -f history.html; then \
>>> /usr/bin/install -c -m 644 history.html /history.html; \
>>> else \
>>> /usr/bin/install -c -m 644 ./history.html /history.html; \
>>> fi ; \
>>> if test -f rluserman.html; then \
>>> /usr/bin/install -c -m 644 rluserman.html /rluserman.html; \
>>> else \
>>> /usr/bin/install -c -m 644 ./rluserman.html /rluserman.html; \
>>> fi ; \
>>> fi
>>> mv /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.a
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.old
>>> mv: rename /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.a
>>> to /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.old: No
>>> such file or directory
>>> make: [install-static] Error 1 (ignored)
>>> /usr/bin/install -c -m 644 libreadline.a
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.a
>>> test -n "ranlib" && ranlib
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.a
>>> mv /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.a
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.old
>>> mv: rename /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.a
>>> to /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.old: No such
>>> file or directory
>>> make: [install-static] Error 1 (ignored)
>>> /usr/bin/install -c -m 644 libhistory.a
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.a
>>> test -n "ranlib" && ranlib
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libhistory.a
>>> test -d shlib || mkdir shlib
>>> ( cd shlib ; /Applications/Xcode.app/Contents/Developer/usr/bin/make all
>>> )
>>> rm -f libreadline.5.0.dylib
>>> gcc -dynamic -arch_only `/usr/bin/arch` -install_name
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.5.0.dylib
>>> -current_version 5.0 -compatibility_version 5 -v -o libreadline.5.0.dylib
>>> readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so
>>> complete.so bind.so isearch.so display.so signals.so util.so kill.so
>>> undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so
>>> xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so
>>> mbutil.so tilde.so compat.so -lncurses
>>> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
>>> Target: x86_64-apple-darwin13.1.0
>>> Thread model: posix
>>> clang: error: invalid argument '-compatibility_version 5' only allowed
>>> with '-dynamiclib'
>>> make[1]: *** [libreadline.5.0.dylib] Error 1
>>> make: [shared] Error 2 (ignored)
>>> ( cd shlib ; /Applications/Xcode.app/Contents/Developer/usr/bin/make
>>> DESTDIR= install )
>>> /bin/sh ../support/mkdirs /Users/ninjawarrior343/supplibs/src/readline/lib
>>> rm -f libreadline.5.0.dylib
>>> gcc -dynamic -arch_only `/usr/bin/arch` -install_name
>>> /Users/ninjawarrior343/supplibs/src/readline/lib/libreadline.5.0.dylib
>>> -current_version 5.0 -compatibility_version 5 -v -o libreadline.5.0.dylib
>>> readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so
>>> complete.so bind.so isearch.so display.so signals.so util.so kill.so
>>> undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so
>>> xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so
>>> mbutil.so tilde.so compat.so -lncurses
>>> Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
>>> Target: x86_64-apple-darwin13.1.0
>>> Thread model: posix
>>> clang: error: invalid argument '-compatibility_version 5' only allowed
>>> with '-dynamiclib'
>>> make[1]: *** [libreadline.5.0.dylib] Error 1
>>> make: [install-shared] Error 2 (ignored)
>>>
>>> It can't read or find libreadline.5.0.dylib (or so I think). I get a
>>> similar error for ncurses:
>>>
>>> gcc -DHAVE_CONFIG_H -I../ncurses -I. -I. -I../include -U_XOPEN_SOURCE
>>> -D_XOPEN_SOURCE=500 -DSIGWINCH=28 -DNDEBUG
>>> -I/Users/ninjawarrior343/supplibs/src/ncurses/include/ncurses -O2 --param
>>> max-inline-insns-single=1200 -no-cpp-precomp -c
>>> ../ncurses/./tty/hardscroll.c -o ../objects/hardscroll.o
>>> clang: warning: argument unused during compilation: '--param
>>> max-inline-insns-single=1200'
>>> *error: **unable to open output file '../objects/hardscroll.o': 'Error
>>> opening*
>>> * output file '../objects/hardscroll.o': Permission denied'*
>>> 1 error generated.
>>> make[1]: *** [../objects/hardscroll.o] Error 1
>>>
>>> make: *** [install] Error 2
>>>
>>> Then when I tried to copy it, I get the following:
>>>
>>> dstanfel:ncurses-5.7 ninjawarrior343$ cp
>>> $HOME/supplibs/src/ncurses/lib/libncurses.a $HOME/supplibs/lib
>>>
>>> cp: /Users/ninjawarrior343/supplibs/src/ncurses/lib/libncurses.a: No such
>>> file or directory
>>>
>>> The file was not created. Any help will be greatly appreciated.
>>>
>>> Thanks,
>>>
>>> David
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>>> --
>>> Jennifer M. Adams
>>> Center for Ocean-Land-Atmosphere Studies (COLA)
>>> 111 Research Hall, Mail Stop 2B3
>>> George Mason University
>>> 4400 University Drive
>>> Fairfax, VA 22030
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> gradsusr mailing list
>>> gradsusr at gradsusr.org
>>> http://gradsusr.org/mailman/listinfo/gradsusr
>>>
>>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
>> --
>> Jennifer M. Adams
>> Center for Ocean-Land-Atmosphere Studies (COLA)
>> 111 Research Hall, Mail Stop 2B3
>> George Mason University
>> 4400 University Drive
>> Fairfax, VA 22030
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140616/e63327a4/attachment.html
>
> ------------------------------
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
>
> End of gradsusr Digest, Vol 52, Issue 53
> ****************************************
>
More information about the gradsusr
mailing list