Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 10 odgovora
  • 3.492 pregleda

Najnovija ↓

./configure ne vidi libstdc++-dev 20.05.2006. u 19:07 · pre 248 meseci #1
Evo već nekoliko programa u SUSE-u 10 ne mogu da kompajliram jer configure stalno prijavljuje grešku :

checking if C++ programs can be compiled... no
configure: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss
a package named similar to libstdc++-dev.

Ja naravno najnoviju verziju tog paketa imam instaliranu (4.0.2_20050901-3), al džabe... Instalirao sam stari gcc verzije 3.3.3-41 ako to ima neke veze...

Ovo je drugi forum na kojem postavljam isto pitanje, pa bih stvarno bio zahvalan za bilo kakvu pomoć.
Re: ./configure ne vidi libstdc++-dev 21.05.2006. u 18:24 · pre 248 meseci
izmenjeno 1 put, poslednji put Serijski_Ubica 21.05.2006. u 23:25
  1. Serijski_Ubica21.05.2006. u 23:25zapis iz teksta poruke
#3
Citat:

Evo, mada nisam siguran da sam trebao ovako da pastujem...
P.S. Skoro sam se prebacio na linux, tako da meni log ne govori mnogo :)


nakačio sam log dole...

A i problem sam privremeno rešio vraćanjem na aktuelnu verziju gcc-a, pa ako neki prog. ne bude hteo da se kompajlira uz novu (kao Mplayer), opet ću da sse prebacim na staru, itd, itd... Da li to može da škodi instalaciji OS-a ?
Re: ./configure ne vidi libstdc++-dev 22.05.2006. u 01:34 · pre 248 meseci
izmenjeno 1 put, poslednji put random 22.05.2006. u 07:37
  1. random22.05.2006. u 07:37zapis iz teksta poruke
#4
Moraš da imaš instaliran gcc 3.3.3 i libstdc++-dev-3.3.3 (ili koju već verziju hoćeš). Proveri da li imaš fajl

/usr/lib/gcc/i686-pc-linux-gnu/3.3.3/include/g++-v3/string

ili nešto slično (nemam SuSE da proverim tačno).

Evo relevantnog isečka iz tvog config.log:

Code:

configure:22120: checking if C++ programs can be compiled
configure:22149: g++ -c -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -O2 -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor  -fno-check-new -fno-common  conftest.cc >&5
conftest.cc:27:18: string: No such file or directory
conftest.cc: In function `int main()':
conftest.cc:34: error: `string' undeclared (first use this function)
conftest.cc:34: error: (Each undeclared identifier is reported only once for 
   each function it appears in.)
conftest.cc:34: error: syntax error before `=' token
conftest.cc:35: error: `astring' undeclared (first use this function)
configure:22155: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "superkaramba-0.39"
| #define VERSION "3.5.2"
| #ifdef __cplusplus
| extern "C" void std::exit (int) throw (); using std::exit;
| #endif
| #define KDELIBSUFF ""
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| 
| #include <string>
| using namespace std;
| 
| int
| main ()
| {
| 
|   string astring="Hallo Welt.";
|   astring.erase(0, 6); // now astring is "Welt"
|   return 0;
| 
|   ;
|   return 0;
| }
configure:22182: result: no
configure:22195: error: Your Installation isn't able to compile simple C++ programs.
Check config.log for details - if you're using a Linux distribution you might miss
a package named similar to libstdc++-dev.
Potpis
int rand(void);

Those who do not understand Unix are condemned to reinvent it, poorly.

Upali lampicu — koristi Jabber!
Re: ./configure ne vidi libstdc++-dev 28.05.2006. u 22:50 · pre 248 meseci #5
Ja imam slican problem na FreeBSD-u, sa ld-elf.so, koji prijavljuje gresku tipa libm.so.4 ili libc.so.6 libz.so.4 not found.

Kom paketu (?) pripadaju te libs, tj gde da ih nadjem/instaliram. U /usr/local/lib imam libm.so i libc.so, ali *.so.4 nemam...
Potpis
ISHS ☦️ NIKA
Re: ./configure ne vidi libstdc++-dev 29.05.2006. u 16:18 · pre 248 meseci #7
Citat:
VRider: Napravi hard/soft linkove.

Linkove ka cemu, kad ih nema??? Jel su to samo kopije, da napravim hard linkove od libm.so???
Jednostavno: sta oznacava taj broj iza?
Code:
libm.so.4 libc.so.6

+
Potpis
ISHS ☦️ NIKA
Re: ./configure ne vidi libstdc++-dev 29.05.2006. u 16:22 · pre 248 meseci #8
To su mu neke verzije, kurci, palci.
Ti samo napravi link libm.so.4 koji pokazuje na libm.so i potom pokreni ldconfig da regenerise cache.
Potpis
JaFreelancer.com
Re: ./configure ne vidi libstdc++-dev 29.05.2006. u 16:34 · pre 248 meseci #9
Ima necega ovde.
Code:
>>>libm.so
 
Sounds like you recently upgraded but don't have the compatible libraries 
in /etc/make.conf make sure you have:
COMPAT4X=       yes

And then rebuild the world.

You might also want to have:
options         COMPAT_FREEBSD4
In your kernel config file.

>>>libz.so


For the past week I've been intermittently updating a
FreeBSD-4.9 to 4.10p2.

buildworld and kernel did OK and I'm now dealing with ports.

After updating the system (and I do not remember if this
also had to do with updating a port also), messages of the
type:

/usr/libexec/ld-elf.so.1: Shared object "libz.so.1" not found 

>>>libc.so


Why it say ""/usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not find"" when I run Portupgrade??
where is libc.so.5?

evo odgovora
Code:
>> so do I need to copy it from 4.x-STABLE?

No, your system is 5.0?

>> install from where?

It should be in there already if your system is 5.0. If it's not there, then CVSup the source and do the buildworld to update your system.
Potpis
ISHS ☦️ NIKA
Re: ./configure ne vidi libstdc++-dev 29.05.2006. u 16:39 · pre 248 meseci #10
Ima necega ovde.
Code:
>>>libm.so
 
Sounds like you recently upgraded but don't have the compatible libraries 
in /etc/make.conf make sure you have:
COMPAT4X=       yes

And then rebuild the world.

You might also want to have:
options         COMPAT_FREEBSD4
In your kernel config file.

>>>libz.so


For the past week I've been intermittently updating a
FreeBSD-4.9 to 4.10p2.

buildworld and kernel did OK and I'm now dealing with ports.

After updating the system (and I do not remember if this
also had to do with updating a port also), messages of the
type:

/usr/libexec/ld-elf.so.1: Shared object "libz.so.1" not found 

>>>libc.so


Why it say ""/usr/libexec/ld-elf.so.1: Shared object "libc.so.5" not find"" when I run Portupgrade??
where is libc.so.5?

evo odgovora
Code:
>> so do I need to copy it from 4.x-STABLE?

No, your system is 5.0?

>> install from where?

It should be in there already if your system is 5.0. If it's not there, then CVSup the source and do the buildworld to update your system.


Sad ja pitam:

1. Da li je libm.so.4 nova verzija libm.so ili njen simbolicki link?? (ako nije nova verzija, VRider, vec simbolicki link, zasto onda postoje ti linkovi uopste???)

2. libm libc i libz su??? Sistemske libs?

3. Problem: /usr/libexec/ld-elf.so.1: Shared object "libm.so.4" not found mi se javlja svaki put kada pokusam da pokrenem neki console based program (mplayer, amp...). O cemu se radi? Da li svaki program koji se pokrece u shell-u poziva te system libraries? (probao sam da kopiram
Code:
cp /usr/local/lib/libm.so /usr/local/lib/libm.so.4
ali onda trazi libc ili libz.so.6, kada sam i njih kopirao onda javlja nesto kao error in line bla bla ili nesto slicno, sto me je navelo da pomislim da su to razlicite verzije...)

Resenje je da 'instaliram' te libs, zar ne...kako??? CVSup source-a ili moze drugacije??
Potpis
ISHS ☦️ NIKA
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme