» »

linux - GNU Readline

linux - GNU Readline

slovencl ::

Rad bi inštaliral octave. ./configure mi vrže tole:

checking for erf... yes
checking for erfc... yes
checking for exp2... yes
checking for log2... yes
checking for struct stat.st_blksize... yes
checking for struct stat.st_blocks... yes
checking for struct stat.st_rdev... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking whether closedir returns void... no
checking for struct group.gr_passwd... no
checking if mkdir takes one argument... no
checking for tputs in -lncurses... no
checking for tputs in -lcurses... no
checking for tputs in -ltermcap... no
checking for tputs in -lterminfo... no
checking for tputs in -ltermlib... no
configure: WARNING: I couldn't find -ltermcap, -lterminfo, -lncurses, -lcurses, or -ltermlib!
checking for rl_set_keyboard_input_timeout in -lreadline... no
configure: WARNING: I need GNU Readline 4.2 or later
configure: error: this is fatal unless you specify --disable-readline
root@laptop:/home/Desktop/octave-3.0.0#







Potem sem skopiral Readline 4.2, pa dobim tole:

root@laptop:/home/Desktop/readline-4.2# ./configure
loading cache ./config.cache
checking host system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized

checking whether make sets ${MAKE}... (cached) yes
checking for gcc... (cached) gcc
checking whether the C compiler (gcc -g ) works... yes
checking whether the C compiler (gcc -g ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for minix/config.h... (cached) no
checking whether gcc needs -traditional... (cached) no
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for ar... (cached) ar
checking for ranlib... (cached) ranlib
checking return type of signal handlers... (cached) void
checking whether stat file-mode macros are broken... (cached) no
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for lstat... (cached) yes
checking for memmove... (cached) yes
checking for putenv... (cached) yes
checking for select... (cached) yes
checking for setenv... (cached) yes
checking for setlocale... (cached) yes
checking for strcasecmp... (cached) yes
checking for tcgetattr... (cached) yes
checking for working strcoll... (cached) yes
checking for unistd.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for varargs.h... (cached) no
checking for stdarg.h... (cached) yes
checking for string.h... (cached) yes
checking for sys/ptem.h... (cached) no
checking for sys/pte.h... (cached) no
checking for sys/stream.h... (cached) no
checking for sys/select.h... (cached) yes
checking for termcap.h... (cached) no
checking for termios.h... (cached) yes
checking for termio.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for locale.h... (cached) yes
checking for type of signal functions... (cached) posix
checking if signal handlers must be reinstalled when invoked... (cached) no
checking for presence of POSIX-style sigsetjmp/siglongjmp... (cached) present
checking for lstat... (cached) yes
checking whether getpw functions are declared in pwd.h... (cached) yes
checking whether or not strcoll and strcmp differ... (cached) no
checking whether signal handlers are of type void... (cached) yes
checking for TIOCGWINSZ in sys/ioctl.h... (cached) yes
checking for TIOCSTAT in sys/ioctl.h... (cached) no
checking for FIONREAD in sys/ioctl.h... (cached) yes
checking for speed_t in sys/types.h... (cached) no
checking for struct winsize in sys/ioctl.h and termios.h... (cached) sys/ioctl.h
checking if struct dirent has a d_ino member... (cached) yes
checking if struct dirent has a d_fileno member... (cached) yes
checking which library has the termcap functions... (cached) using gnutermcap
checking configuration for building shared libraries... shift: 43: can't shift that many

creating ./config.status
creating Makefile
creating doc/Makefile
creating examples/Makefile
creating shlib/Makefile
creating config.h
config.h is unchanged

root@laptop:/home/Desktop/readline-4.2# make

make: Nothing to be done for `all'.






root@laptop:/home/Desktop/readline-4.2# make install

/bin/sh ./support/mkdirs /usr/local/include \
/usr/local/include/readline /usr/local/lib /usr/local/info /usr/local/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 /usr/local/include/readline ; \
done
mv /usr/local/lib/libreadline.a /usr/local/lib/libreadline.old
/usr/bin/install -c -m 644 libreadline.a /usr/local/lib/libreadline.a
test -n "ranlib" && ranlib /usr/local/lib/libreadline.a
mv /usr/local/lib/libhistory.a /usr/local/lib/libhistory.old
/usr/bin/install -c -m 644 libhistory.a /usr/local/lib/libhistory.a
test -n "ranlib" && ranlib /usr/local/lib/libhistory.a
( if test -d doc ; then \
cd doc && \
make infodir=/usr/local/info install; \
fi )
make[1]: Entering directory `/home/Desktop/readline-4.2/doc'
/bin/sh ../support/mkdirs /usr/local/info /usr/local/man/man3
if test -f readline.info; then \
/usr/bin/install -c -m 644 readline.info /usr/local/info/readline.info; \
else \
/usr/bin/install -c -m 644 ./readline.info /usr/local/info/readline.info; \
fi
if test -f rluserman.info; then \
/usr/bin/install -c -m 644 rluserman.info /usr/local/info/rluserman.info; \
else \
/usr/bin/install -c -m 644 ./rluserman.info /usr/local/info/rluserman.info; \
fi
if test -f history.info; then \
/usr/bin/install -c -m 644 history.info /usr/local/info/history.info; \
else \
/usr/bin/install -c -m 644 ./history.info /usr/local/info/history.info; \
fi
if /bin/sh -c 'install-info --version' >/dev/null 2>&1; then \
install-info --dir-file=/usr/local/info/dir /usr/local/info/readline.info ; \
install-info --dir-file=/usr/local/info/dir /usr/local/info/history.info ; \
else true; fi
* Readline: (readline). The GNU readline library API
install-info(/usr/local/info/readline.info): replacing existing dir entry for `readline'
* History: (history). The GNU history library API
install-info(/usr/local/info/history.info): replacing existing dir entry for `history'
/usr/bin/install -c -m 644 ./readline.3 /usr/local/man/man3/readline.3
/usr/bin/install -c -m 644 ./history.3 /usr/local/man/man3/history.3
make[1]: Leaving directory `/home/Desktop/readline-4


Jest ne vem, ali se ta readline ni dobro inštaliral, ker mi octave še vedno vrže isto napako? Kaj naj naredim. Poskusil sem s synaptic manager, pa te Readline zadeve sploh ne najde.

bosto ::

najbrz ti ne najde ker se je instaliralo v /usr/local/lib

probaj:
export LIBPATH=/usr/local/lib;$LIBPATH

in potem se enkrat zazeni configure od octave.

slovencl ::

export LIBPATH=/usr/local/lib;$LIBPATH mi vrže:
bash: /usr/local/lib: is a directory

ampak če dam export, mi izpiše med drugim tudi to. Zgleda da je to ok.
declare -x LIBPATH="/usr/local/lib"


Problem pa je še vedno isti.

A je to normalno, da mi pri make vrže ven to?
root@laptop:/home/Desktop/readline-4.2# make
make: Nothing to be done for `all'.


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Kje so programi

Oddelek: Operacijski sistemi
71351 (1150) madness
»

Igre za linux

Oddelek: Igre
231742 (1323) NoUse4AName
»

namestitev KDE

Oddelek: Programiranje
81241 (1083) Ezekiel
»

Katera dist LINUXA

Oddelek: Operacijski sistemi
472239 (1577) mte
»

Kako instalirat v linux?

Oddelek: Pomoč in nasveti
5833 (789) BigWhale

Več podobnih tem