Автор Тема: [Решено] hasher: C++ compiler cannot create executables  (Прочитано 16675 раз)

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Пытался собрать пакет pekwm, но в процессе сборки выдаёт
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl.exe... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking for C++ compiler default output file name...
configure: error: in `/usr/src/RPM/BUILD/pekwm-0.1.12':
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
error: Bad exit status from /usr/src/tmp/rpm-tmp.31609 (%build)


Поставил в hasher пакеты gcc cpp rpm-utils - результат тот же.
Подскажите, пожалуйста, кто-нибудь что ему нужно!!!
« Последнее редактирование: 08.02.2011 02:07:20 от gBopHuk »

Оффлайн aen

  • alt linux team
  • ***
  • Сообщений: 2 452
Re: hasher: C++ compiler cannot create executables
« Ответ #1 : 05.02.2011 17:11:57 »
Пытался собрать пакет pekwm, но в процессе сборки выдаёт
checking for g++... no
checking for c++... no
<..>
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
error: Bad exit status from /usr/src/tmp/rpm-tmp.31609 (%build)


Поставил в hasher пакеты gcc cpp rpm-utils - результат тот же.
Подскажите, пожалуйста, кто-нибудь что ему нужно!!!

gcc-c++
Используйте apt-cache search , пожалуйста, преде чем писать сюда.

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #2 : 05.02.2011 18:03:35 »
Не подходит ваш вариант. Результат тот же

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #3 : 05.02.2011 18:23:47 »
g++ --version что говорит?

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #4 : 05.02.2011 18:58:58 »
говорит что g++ command not found
а hsh-install ~/hasher gcc говорит что пакет уже installed

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #5 : 05.02.2011 19:19:25 »
Типа хинт: gccX.Y и gccX.Y-c++ -- разные пакеты. g++ находится в последнем.

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #6 : 05.02.2011 19:31:07 »
hsh-install ~/hasher gcc4.4-c++
<13>Feb  5 16:16:43 rpmi: gcc-c++-common-1.4.14-alt1 installed
<13>Feb  5 16:16:43 rpmi: libstdc++4.4-4.4.1-alt3 installed
<13>Feb  5 16:16:45 rpmi: libstdc++4.4-devel-4.4.1-alt3 installed
<13>Feb  5 16:16:47 rpmi: gcc4.4-c++-4.4.1-alt3 installed

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #7 : 05.02.2011 19:41:26 »
Во, каким-то чудом получилось:
.in]$ g++ --version
i586-alt-linux-g++ (GCC) 4.4.1 20090725 (ALT Linux 4.4.1-alt3)
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

Но результат тот же

Потом если после неудачной сборки зайти снова в hsh-shell и ввести g++ --version,
hasher снова говорит command not found, если опять сделать hsh-install gcc4.4-c++,
то в hsh-shell снова появляется g++

Я опять ничего не понимаю  :(

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #8 : 05.02.2011 19:49:45 »
Почему не собрать для начала без hasher?

Оффлайн Skull

  • Глобальный модератор
  • *****
  • Сообщений: 19 926
    • Домашняя страница
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #9 : 05.02.2011 19:54:23 »
[cas@altair gnupg]$ hsh-install gcc4.4-c++
<13>Feb  5 16:52:48 rpmi: libstdc++4.4-devel-4.4.5-alt3 installed
<13>Feb  5 16:52:49 rpmi: cpp4.4-4.4.5-alt3 installed
<13>Feb  5 16:52:49 rpmi: gcc4.4-4.4.5-alt3 installed
<13>Feb  5 16:52:50 rpmi: gcc4.4-c++-4.4.5-alt3 installed
[cas@altair gnupg]$ hsh-shell
[builder@altair .in]$ rpm -qf $(which g++)
gcc-c++-common-1.4.14-alt1
Сморите config.log на предмет ошибок. Нужно ещё что-то.
Андрей Черепанов (cas@)

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #10 : 06.02.2011 18:46:34 »
config.log пишет:
configure:2041: result: /bin/install -c
configure:2052: checking whether build environment is sane
configure:2095: result: yes
configure:2222: checking for a thread-safe mkdir -p
configure:2261: result: /bin/mkdir -p
configure:2274: checking for gawk
configure:2290: found /bin/gawk
configure:2301: result: gawk
configure:2312: checking whether make sets $(MAKE)
configure:2334: result: yes
configure:2433: checking for i586-alt-linux-g++
configure:2463: result: no
configure:2433: checking for i586-alt-linux-c++
configure:2463: result: no
configure:2433: checking for i586-alt-linux-gpp
configure:2463: result: no
configure:2433: checking for i586-alt-linux-aCC
configure:2463: result: no
configure:2433: checking for i586-alt-linux-CC
configure:2463: result: no
configure:2433: checking for i586-alt-linux-cxx
configure:2463: result: no
configure:2433: checking for i586-alt-linux-cc++
configure:2463: result: no
configure:2433: checking for i586-alt-linux-cl.exe
configure:2463: result: no
configure:2433: checking for i586-alt-linux-FCC
configure:2463: result: no
configure:2433: checking for i586-alt-linux-KCC
configure:2463: result: no
configure:2433: checking for i586-alt-linux-RCC
configure:2463: result: no
configure:2433: checking for i586-alt-linux-xlC_r
configure:2463: result: no
configure:2433: checking for i586-alt-linux-xlC
configure:2463: result: no
configure:2477: checking for g++
configure:2507: result: no
configure:2477: checking for c++
configure:2507: result: no
configure:2477: checking for gpp
configure:2507: result: no
configure:2477: checking for aCC
configure:2507: result: no
configure:2477: checking for CC
configure:2507: result: no
configure:2477: checking for cxx
configure:2507: result: no
configure:2477: checking for cc++
configure:2507: result: no
configure:2477: checking for cl.exe
configure:2507: result: no
configure:2477: checking for FCC
configure:2507: result: no
configure:2477: checking for KCC
configure:2507: result: no
configure:2477: checking for RCC
configure:2507: result: no
configure:2477: checking for xlC_r
configure:2507: result: no
configure:2477: checking for xlC
configure:2507: result: no
configure:2531: checking for C++ compiler version
configure:2539: g++ --version >&5
./configure: line 2541: g++: command not found
configure:2543: $? = 127
configure:2550: g++ -v >&5
./configure: line 2552: g++: command not found
configure:2554: $? = 127
configure:2561: g++ -V >&5
./configure: line 2563: g++: command not found
configure:2565: $? = 127
configure:2588: checking for C++ compiler default output file name
configure:2610: g++ -pipe -Wall -O2 -march=i586 -mtune=i686   conftest.cpp  >&5
./configure: line 2612: g++: command not found
configure:2614: $? = 127
configure:2652: result:
configure: failed program was:

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #11 : 06.02.2011 19:04:10 »
Нет у вас ни одного компилятора c++ из проверявшихся: g++, c++, etc.

Оффлайн gBopHuk

  • alt linux team
  • ***
  • Сообщений: 584
  • Simply LInux
    • Email
Re: hasher: C++ compiler cannot create executables
« Ответ #12 : 06.02.2011 22:32:52 »
Это я тоже понял. А как сделать чтобы появились? Hasher пишет что есть у него такие пакеты , однако собирать не хочет.

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #13 : 06.02.2011 23:22:42 »
После hsh-install gcc4.4-c++ зайдите в  hsh-shell и проверьте, что говорит g++ --version

P.S. На кой вам hasher, если пакет не будет распространяться? Соберите как обычно: ./configure --prefix=/usr/local && make install

lx001

  • Гость
Re: hasher: C++ compiler cannot create executables
« Ответ #14 : 06.02.2011 23:30:08 »
...
[cas@altair gnupg]$ hsh-shell
[builder@altair .in]$ rpm -qf $(which g++)
gcc-c++-common-1.4.14-alt1
which g++ недостаточно. gcc-c++-common может стоять без gcc4.4-c++. При этом which g++ вернет /usr/bin/g++, который указывает на gcc_wrapper, но самого компилятора c++ нет.