DelphiFAQ Home Search:

I try to install ht://Dig, get error message 'Try installing libstdc++'


comments17 comments. Current rating: 5 stars (5 votes). Leave comments and/ or rate it.


I want to install ht://Dig on my hosted web site. So I downloaded the latest version (3.1.6) and ran the configure script.
I get the following error message:
checking for fstream.h... no
configure: error: To compile ht://Dig, you will need a C++ library. Try installing libstdc++.

It appears that file fstream.h is missing? What can I do?


You probably use an older version of the gcc compiler. You need to set two environment variables - flags for the C++ compiler:

export CPPFLAGS=-Wno-deprecated
export CXXFLAGS=-Wno-deprecated

Then run configure:

Content-type: text/html


You are on page 1 of 2, other pages: [1] 2
2006-07-15, 13:55:13
anonymous from Romania  
worked for me too
2007-01-04, 07:34:41
anonymous from United States  
did the trick!
2007-02-15, 04:13:50
anonymous from Spain  
I had the same problem and this solve it

2007-05-31, 12:18:33
anonymous from Mexico  
It works!, thanks a lot!
2007-06-05, 23:15:19
anonymous from Hong Kong  
It works for me too!!!
2008-02-19, 22:09:00
anonymous from Netherlands  
yipp, worked!
2008-04-26, 19:23:40
anonymous from Canada  
Yes, this worked for me too. I tested it on my Ubuntu 8.04 Desktop Edition and Fedora Core 8. My Fedora Core 8 had gcc-4.1.2 and libstdc++ 4.1.2-33.i386

2008-07-24, 10:33:54
anonymous from United States  
I had the same problem today and your trick worked.

[root@alder htdig-3.1.6]# gcc -v
Using built-in specs.
Target: i386-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --enable-plugin --with-java-home=/usr/lib/jvm/java-1.5.0-gcj- --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --with-cpu=generic --host=i386-redhat-linux
Thread model: posix
gcc version 4.1.2 20070925 (Red Hat 4.1.2-27)
[root@alder htdig-3.1.6]#

2008-08-13, 13:30:47
anonymous from Ecuador  
Sorry I´m a beginner, can you tell me how to set those enviroment variables? Thanks.
2008-08-13, 13:40:00
anonymous from Ecuador  
Sorry about that dumb question, never mind... I just figured it out.
2009-06-23, 17:05:49
elmer,fudd from Auckland, New Zealand  
Been trying to debug this for some time. Thanks for the post!
2009-12-01, 06:22:59
anonymous from India  
It works, Thanks for the post
2010-05-13, 11:48:27
anonymous from Brazil  
Dang! Wish I could join the joy parade, but did not work for me (Debian/Sid) .... Need ostream.h, iostream.h and fstream.h, searching on those ...
2010-05-13, 13:08:29
anonymous from Brazil  
anonymous from Brazil again: I wound up installing the beta version, did not have the problem there, it calls for the most recent compiler.
2011-12-16, 02:37:38
anonymous from India  
Thanks for the Post, it worked for me
You are on page 1 of 2, other pages: [1] 2



NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: