Xbtt make.sh probléma. g++-4.2: command not found

Fórumok

Sziasztok!
Sajnos nem tudom lefuttatni az xbtt-m make.sh indítása ezt a hibát dobja:
20110504:./make.sh
./make.sh: line 1: g++-4.2: command not found

make.sh így néz ki:
g++-4.2 -DNDEBUG -I ../misc -I . -O3 -o xbt_tracker *.cpp ../misc/*.cpp ../misc/sql/*.cpp `mysql_config --libs` && strip xbt_tracker

Mi lehet a probléma? Egyszerűen nem jövök rá . :(

Hozzászólások

Na, asszem a lentebbi leirasom nem fog segiteni, igy elmagyarazom: nem talalja a g++-4.2 parancsot. Javitsd ki a scriptet, hogy ne azzal probaljon forgatni, hanem g++ -al, ami van neked (amennyiben 4.3-as g++ tenyleg fel van telepitve).

Nem letezo paranccsal nem fog tudni forgatni.

--
|8]

Sokkal egyszerubb, ha atirja a scriptet 4.3-ra. Vagy kiszedi belole a verzioszamot, mert teljesen felesleges oda. Igy nem kell semmit telepiteni, se symlinkelni, csak elolvasni a hibauzenetet, megerteni hogy mit jelent a command not found, konstatalni, hogy "dehat nekem van 4.3-am!", es megjavitani a scriptet.

--
|8]

Igen, de ha mondjuk 100-szor van benne a g++-4.2, akkor célszerű symlinkelni, mint mindet átírni.

Nem tudom, hogy miért a 4.2-es g++-ra hivatkozik, lehet van benne valami csudajó, ami a többiben nem, én ezért telepíteném fel a 4.2-est, azt ha felrakta és többet nem kell, akkor törlés.
---------------------------
Oszt jónapot!

1): Jelold ki a hibauzenetet
2): Nyiss egy bongeszot, es latogasd meg a http://translate.google.com/ cimet
3): Vagd be oda az uzenetet, es fordittasd angolrol magyarra

Nezd meg alaposan az eredmenyt. De tenyleg alaposan. Utana olvasd el, amit fentebb irtal, hogy 4.3-ad van. Nezd meg megegyszer a verzioszamot, ami a hibauzenetben szerepel. Hasonlitsd ossze 4.3-al.

A megoldast meghagyom neked, innen mar egyszeru kene legyen.

--
|8]

Kitöröltem a verziószámot így elindul pár üzenettel:

In file included from ../misc/sql/database.h:8,
from server.h:8,
from peer_link.cpp:5:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from server.h:8,
from server.cpp:2:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from server.h:8,
from tcp_listen_socket.cpp:4:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from server.h:8,
from transaction.h:8,
from transaction.cpp:2:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from server.h:8,
from transaction.h:8,
from udp_listen_socket.cpp:4:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/stream_writer.h:8,
from ../misc/alerts.h:10,
from ../misc/alerts.cpp:2:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/alerts.h:10,
from ../misc/alerts.cpp:2:
../misc/stream_writer.h: In member function 'void Cstream_writer::write_string(const std::string&)':
../misc/stream_writer.h:39: error: 'memcpy' was not declared in this scope
../misc/bt_misc.cpp: In function 'std::string get_env(const std::string&)':
../misc/bt_misc.cpp:37: error: 'getenv' was not declared in this scope
In file included from ../misc/stream_writer.h:8,
from ../misc/bt_tracker_account.h:8,
from ../misc/bt_tracker_account.cpp:2:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/bt_tracker_account.h:8,
from ../misc/bt_tracker_account.cpp:2:
../misc/stream_writer.h: In member function 'void Cstream_writer::write_string(const std::string&)':
../misc/stream_writer.h:39: error: 'memcpy' was not declared in this scope
../misc/bvalue.cpp: In member function 'int Cbvalue::write(const char*&, const char*)':
../misc/bvalue.cpp:143: error: 'atoi' was not declared in this scope
../misc/bvalue.cpp:178: error: 'atoll' was not declared in this scope
../misc/bvalue.cpp: In member function 'int Cbvalue::read(char*) const':
../misc/bvalue.cpp:336: error: 'strlen' was not declared in this scope
../misc/bvalue.cpp:342: error: 'memcpy' was not declared in this scope
In file included from ../misc/stream_reader.h:8,
from ../misc/stream_reader.cpp:2:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/stream_writer.h:8,
from ../misc/stream_writer.cpp:2:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/stream_writer.cpp:2:
../misc/stream_writer.h: In member function 'void Cstream_writer::write_string(const std::string&)':
../misc/stream_writer.h:39: error: 'memcpy' was not declared in this scope
../misc/virtual_binary.cpp: In constructor 'Cvirtual_binary_source::Cvirtual_binary_source(const void*, size_t)':
../misc/virtual_binary.cpp:12: error: 'memcpy' was not declared in this scope
../misc/virtual_binary.cpp: In member function 'size_t Cvirtual_binary::read(void*) const':
../misc/virtual_binary.cpp:105: error: 'memcpy' was not declared in this scope
../misc/virtual_binary.cpp: In member function 'void Cvirtual_binary::write(const void*, size_t)':
../misc/virtual_binary.cpp:121: error: 'memcpy' was not declared in this scope
In file included from ../misc/xcc_z.cpp:6:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/xif_key.h:11,
from ../misc/xif_key.cpp:2:
../misc/xif_value.h: In constructor 'Cxif_value::Cxif_value(const std::string&)':
../misc/xif_value.h:44: error: 'memcpy' was not declared in this scope
In file included from ../misc/xif_key.cpp:5:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/xif_key_r.h:10,
from ../misc/xif_key_r.cpp:2:
../misc/xif_value.h: In constructor 'Cxif_value::Cxif_value(const std::string&)':
../misc/xif_value.h:44: error: 'memcpy' was not declared in this scope
In file included from ../misc/xif_key_r.cpp:5:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
In file included from ../misc/xif_value.cpp:2:
../misc/xif_value.h: In constructor 'Cxif_value::Cxif_value(const std::string&)':
../misc/xif_value.h:44: error: 'memcpy' was not declared in this scope
In file included from ../misc/xif_value.cpp:5:
../misc/stream_int.h: In function 'T write_float(T, float)':
../misc/stream_int.h:26: error: there are no arguments to 'memcpy' that depend on a template parameter, so a declaration of 'memcpy' must be available
../misc/stream_int.h:26: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../misc/xif_value.cpp: In function 'float read_float(const byte*&)':
../misc/xif_value.cpp:11: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp: In member function 'void Cxif_value::load_old(const byte*&)':
../misc/xif_value.cpp:53: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp:54: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp: In member function 'void Cxif_value::load_new(const byte*&)':
../misc/xif_value.cpp:79: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp: In member function 'void Cxif_value::load_external(const byte*&)':
../misc/xif_value.cpp:89: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp: In member function 'void Cxif_value::save(byte*&) const':
../misc/xif_value.cpp:133: error: 'memcpy' was not declared in this scope
../misc/xif_value.cpp: In member function 'void Cxif_value::external_save(byte*&) const':
../misc/xif_value.cpp:149: error: 'memcpy' was not declared in this scope
In file included from ../misc/xif_value.cpp:5:
../misc/stream_int.h: In function 'T write_float(T, float) [with T = byte*]':
../misc/xif_value.cpp:125: instantiated from here
../misc/stream_int.h:26: error: 'memcpy' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from ../misc/sql/database.cpp:2:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
In file included from ../misc/sql/database.h:8,
from ../misc/sql/sql_query.cpp:5:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope
../misc/sql/sql_query.cpp: In member function 'void Csql_query::p(const std::string&)':
../misc/sql/sql_query.cpp:68: error: 'strcat' was not declared in this scope
../misc/sql/sql_query.cpp: In member function 'void Csql_query::p(const Cvirtual_binary&)':
../misc/sql/sql_query.cpp:78: error: 'strcat' was not declared in this scope
In file included from ../misc/sql/sql_result.cpp:2:
../misc/sql/sql_result.h: In member function 'long long int Csql_field::i(long long int) const':
../misc/sql/sql_result.h:70: error: 'atoll' was not declared in this scope

Ez megvolt?

The following commands can be used to install the dependencies on Debian. The g++ version should be at least 3.4.
apt-get install cmake g++ libboost-date-time-dev libboost-dev libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev libboost-serialization-dev libmysqlclient15-dev make subversion zlib1g-dev

Melyik xbtt -t próbálod fordítani egyébként? Mert ha a latest_svn verziót, akkor előfordulhat ilyen hiba... próbálj meg egy régebbi svn -t lehúzni, hátha. Vagy jelezd a hibát Olafnak (olafvdspek [kuckuc] gmail [pötty] com), elég segítőkész (ha normális hangnemben fordulsz hozzá és elsőre sikerül leírni minden infót a hibajelenséggel kapcsolatban).