[gradsusr] Errors installing readline and ncurses supplies

David Stanfel dstanfel at ualberta.ca
Mon Jun 16 16:07:39 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20140616/6c6fccb8/attachment.html 


More information about the gradsusr mailing list