General Databases (73) Linux (41) Apache (6) Network (11) shell (12) Outside the Cube (5088) Programming (679) Web publishing (65) Windows (431)
Exchange Links About this site Links to us 
|
I try to install ht://Dig, get error message 'Try installing libstdc++'
12 comments. Current rating: (3 votes). Leave comments and/ or rate it.
Question: 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?
Answer: 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:
./configure
Comments:
|
anonymous from Romania
|
|
|
|
worked for me too
|
|
anonymous from United States
|
|
|
|
did the trick!
|
|
anonymous from Spain
|
|
|
|
I had the same problem and this solve it
thanks
|
|
anonymous from Mexico
|
|
|
|
It works!, thanks a lot!
|
|
anonymous from Hong Kong
|
 |
|
|
It works for me too!!!
|
|
anonymous from Netherlands
|
|
|
|
yipp, worked!
|
|
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
|
|
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-1.5.0.0/jre --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]#
|
|
anonymous from Ecuador
|
 |
|
|
Sorry I´m a beginner, can you tell me how to set those enviroment variables? Thanks.
|
|
anonymous from Ecuador
|
|
|
|
Sorry about that dumb question, never mind... I just figured it out.
|
|
elmer,fudd from Auckland, New Zealand
|
 |
|
|
Been trying to debug this for some time. Thanks for the post!
|
|
anonymous from India
|
|
|
|
It works, Thanks for the post
|
|