- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica 1.6. installation in...
OpenModelica 1.6. installation in Linux Slackware 13.1
OpenModelica 1.6. installation in Linux Slackware 13.1
Hi,
When I'm running
./configure --with-CORBA=/usr/local/mico/
I have an error : checking for library readline : not found.
But readline and libreadline6-dev libraries are already installed in /usr/local/lib, /usr/lib, /ustr/include. Paths and Libpaths seems OK.
Any help please ?
Thank's
Re: OpenModelica 1.6. installation in Linux Slackware 13.1
The following is used by the autoconf:
AC_CHECK_HEADER(readline/readline.h,,AC_MSG_ERROR([readline missing]))
AC_CHECK_HEADER(readline/history.h,,AC_MSG_ERROR([readline missing]))
AC_SEARCH_LIBS(readline,readline,,[AC_MSG_ERROR([readline missing])])
What locations are used by these headers in Slackware? If it's /usr/include/readline.h, we have a slight problem
- sjoelund.se
- 1700 Posts
Re: OpenModelica 1.6. installation in Linux Slackware 13.1
So that means -lreadline doesn't work on your system, but at least the headers are there.
It's (now) possible to ./configure --disable-omshell-terminal if you don't care about that OpenModelica client (it's the only one using readline).
Otherwise, I'm sure Slackware has some method of displaying what files were part of which packages. My guess is this is called -lreadline6 or something.
The following might give a better error message as to why readline won't link...
Code:
$ echo "int main() {}" > a.c && gcc -lreadline a.c
- sjoelund.se
- 1700 Posts
Re: OpenModelica 1.6. installation in Linux Slackware 13.1
I have the foolowing msg :
root@hp:~/OPENMODELICA_1_6_0# echo "int main() {}" > a.c && gcc -lreadline a.c
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i486-slackware-linux/4.4.4/libreadline.so: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
Re: OpenModelica 1.6. installation in Linux Slackware 13.1
You will need r8370+ of OpenModelica for this option
Anyway, it might be possible to fix this problem by adding -lcurses or -lncurses. I'd just need some time to find the correct way to do this in autoconf.
- sjoelund.se
- 1700 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OpenModelica 1.6. installation in...