LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2015, 11:31 AM   #1
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Rep: Reputation: 15
stdio in readline.h/electr. sim. software


Hi,
I am trying to ./configure the simulation software (electronics). I have
changed readline.h as follows:

//testing=trivial 2006.07.17
#include <stdio>
#include <readline/readline.h>
#include <readline/history.h>
int main()
{
char* line_read = readline("xx");
add_history(line_read);
}

but I still get the errors:

[root@localhost gnucap-2013-04-23]# ./configure
Configuring gnucap using --prefix=/usr/local
include
lib
test_readline.cc:2:17: fatal error: stdio: No such file or directory
#include <stdio>
^
compilation terminated.
either libtermcap or libreadline is missing - not using readline
modelgen
main
apps
test_readline.cc:2:31: fatal error: readline/readline.h: No such file or
directory
#include <readline/readline.h>
^
compilation terminated.
either libtermcap or libreadline is missing - not using readline
done

can anyone help?
regards
torben
 
Old 11-11-2015, 12:15 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
"gnucap", Debian, Debian clones : $ sudo apt-get install gnucap.

Building gnucap :
$ mkdir gnucap_0.36
$ cd gnucap_0.36/
$ tar xvf gnucap_0.36~20091207.orig.tar.gz
http://ftp.df.lth.se/pub/debian/pool...07.orig.tar.gz
$ tar xvf gnucap_0.36~20091207-2.debian.tar.gz
http://ftp.df.lth.se/pub/debian/pool....debian.tar.gz
$ patch -p1 < debian/patches/acs_gnucap.diff
$ patch -p1 < debian/patches/docpaths.diff
$ patch -p1 < debian/patches/fix_runall.diff
$ patch -p1 < debian/patches/typos.diff
$ ./autogen.sh
$ ./configure ( No errors, the older versions will look for old readline, old termcap. )
$ make ( No errors here.)


-
 
Old 11-11-2015, 12:49 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Another usable new version is gnucap-20140708.tar.gz
http://git.savannah.gnu.org/cgit/gnu...0140708.tar.gz

The configure script doesn't seem to be updated to accept new versions of readline, termcap.
So please do not run ./configure.
The Makefile is OK : 'make' will create the executable`s gnucap, gnucap-modelgen.
And the library libgnucap.so .


-

Last edited by knudfl; 11-11-2015 at 12:56 PM.
 
Old 11-11-2015, 03:29 PM   #4
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
Hi knudfl,
Thank you for your reply.
I did make/make install, but I get:

[root@localhost gnucap-20140708]# ./main/O/gnucap
./main/O/gnucap: error while loading shared libraries: libgnucap.so: cannot open shared object file: No such file or directory.
Did I miss something?
regards
torben
 
Old 11-11-2015, 05:23 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4.

The new version, gnucap-20140708, is different from the other versions.
The executable`s are much smaller, and will thus depend on libgnucap*.so .

Run # make install
... to get /usr/local/lib/{ libgnucap-default-plugins.so, libgnucap.so },
/usr/local/bin/{ gnucap, gnucap-modelgen }.
And : $ cd /usr/lib*/
# ln -s /usr/local/lib/libgnucap.so
# ln -s /usr/local/lib/libgnucap-default-plugins.so
The executable 'gnucap' is hard coded to look for the *.so in /usr/lib*/ only.

('make install' : libgnucap.so is copied from gnucap-20140708/lib/O/.
Use the find command : $ cd gnucap-20140708/ && find . -name libgnucap.so ).


-

Last edited by knudfl; 11-13-2015 at 05:50 PM.
 
Old 11-13-2015, 04:05 PM   #6
Torben Friis
Member
 
Registered: Oct 2008
Posts: 71

Original Poster
Rep: Reputation: 15
Hi knudfl,
I wonder if you got my reply. It works - thank you.
torben
 
  


Reply

Tags
gnucap



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SIM Card reading software? gbowden Slackware 4 10-15-2017 05:44 AM
[Innovative voice recognition, PoweredbyLinux] Talk to your Server and control electr frenchn00b Linux - Server 1 09-12-2009 02:40 AM
Using cat readline within cat readline while loop demxkn66 Programming 5 12-16-2007 05:10 PM
Router sim Software for linux linuxcolor Linux - Software 1 08-10-2005 02:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration