Ralat: configure error the compiler (g++) failed to pass a simple C++ test

linuxpenguin Ralat: configure error the compiler (g++) failed to pass a simple C++ test ralat os  squid ralat linux libecap gcc cpp Applikasi: Sebarang linux distro bagi kompilasi applikasi atau sebarang module / library. (Centos, Red Hat, Fedora, Ubuntu, Debian etc)

Ralat: configure: error: the compiler (g++) failed to pass a simple C++ test; check config.log for details

Situasi Masalah:

terjadi semasa penulis cuba untuk mengkompilasikan libecap dari sumber : http://www.measurement-factory.com/tmp/ecap/libecap-0.0.3.tar.gz bagi kegunaan squid ecap (gzip) mengikut panduan dari laman : http://code.google.com/p/squid-ecap-gzip/wiki/Installation. Mesej ralat terjadi semasa melakukan proses konfigurasi dengan menggunakan arahan ” ./configure ” yang bermakna arahan seterusnya bagi “make” dan “make install” tidak dapat diteruskan. Setelah semak semula fail “config.log” berikut adalah antara petanda bagi punca masalah yang di hadapi: ( keseluruhan config.log boleh dilihat di sini : http://pastebin.centos.org/38254 )

  • configure:11224: g++ –version >&5
  • ./configure: line 11226: g++: command not found
  • configure:11235: $? = 127
  • configure:11224: g++ -v >&5
  • ./configure: line 11226: g++: command not found
  • configure:11235: $? = 127
  • configure:11224: g++ -V >&5
  • ./configure: line 11226: g++: command not found
  • configure:11235: $? = 127
  • configure:11224: g++ -qversion >&5
  • ./configure: line 11226: g++: command not found

Cara Atasi:

g++ adalah arahan bagi memanggil sub modul dari Gcc (Gnu Compiler Collection). G++ mempunyai variasi nama bagi distro yang berlainan seperti  ”gcc-c++” dan “gcc-cpp”.

  1. Anda hanya perlu melakukan installasi menggunakan apt-get ataupun yum bagi pakej gcc-c++ tersebut.
  2. Seterusnya lakukan arahan bagi ./configure semula. ;)

Perkara yang berkaitan ...
  1. Ralat: adapter_gzip.cc:49:18: error: zlib.h: No such file or directory
      Applikasi: Sebarang linux distro bagi kompilasi applikasi atau sebarang module /...
  2. Ralat Squid Error 1067 the process terminated unexpectedly
      Applikasi: Windows Service Management Console & Squid Proxy Server Ralat: “Could...
  3. Ralat: Error Copying File or Folder hard disk external
      Applikasi: Windows Explorer (Windows 2000/XP, Windows Vista/7) Ralat: Keluar mesej seperti...
  4. Ralat file * from install of VirtualBox_Old conflicts with file from package VirtualBox_new
      Applikasi: RPM / Yum (Fedora, Red Hat, CentOS) Ralat: Dari Shell...
  5. Ralat: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again
      Yum adalah applikasi bagi installasi dan kemaskini sebarang pakej dari repository...

Kategori: OSRalat

Tags:


... Carian ...