aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Compilation error : Cannot execute wx-config  (Read 8616 times)

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Compilation error : Cannot execute wx-config
« on: May 21, 2005, 12:33:31 PM »

Quote
checking for wx-config... /usr/bin/wx-config
Cannot execute /usr/bin/multiarch-i386-linux/wx-config
checking for wxWidgets version >= 2.4.2... no
configure: error:
         Please check that wx-config is in path, the directory
         where wxWidgets libraries are installed (returned by
         'wx-config --libs' command) is in LD_LIBRARY_PATH or
         equivalent variable and wxWidgets version is new enough.
         Or this might also be a bug in our configure. Please try again
         with --with-wx-config=/usr/bin/wx-config
         (replace /usr/bin/wx-config with a valid path to your wx-config)
         * Note:
         Most probably, either one of the above aren't correct, you don't
         have wxGTK installed, or are missing wxGTK-devel (or equivalent) package.
         
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.65732 (%prep)

Erreur de construction de RPM:
    Mauvais status de sortie pour /var/tmp/rpm-tmp.65732 (%prep)

Why do I have this line ?
Cannot execute /usr/bin/multiarch-i386-linux/wx-config

look :
Quote
# locate wx-config
/etc/alternatives/wx-config
/var/lib/rpm/alternatives/wx-config
/usr/bin/multiarch-i386-linux/wx-config-unicode
/usr/bin/multiarch-i386-linux/wx-config-ansi
/usr/bin/wx-config-ansi
/usr/bin/wx-config
/usr/bin/wx-config-unicode
/usr/local/bin/wx-config

Quote
#  rpm -qa | grep wx
wxGTK2.6-2.6.0-3mdk
libwxPythonGTK2.6-2.6.0.0-1mdk
libwxgtk2.6-2.6.0-3mdk
libwxgtku2.6-2.6.0-3mdk
libwxgtk2.6-devel-2.6.0-3mdk
libwxgtkglu2.6-2.6.0-3mdk
wxPythonGTK-2.6.0.0-1mdk
libwxgtkgl2.6-2.6.0-3mdk
libwxgtku2.6-devel-2.6.0-3mdk

What can I do ?
Thanks again.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #1 on: May 21, 2005, 12:52:19 PM »

can you post

ls -la /usr/bin/wx*

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #2 on: May 21, 2005, 02:11:55 PM »

of course ;)

Quote
# ls -la /usr/bin/wx*
-rwxr-xr-x  1 root root 364360 mai 18 09:39 /usr/bin/wxcas*
lrwxrwxrwx  1 root root     27 mai 14 16:32 /usr/bin/wx-config -> /etc/alternatives/wx-config*
lrwxrwxrwx  1 root root     45 mai 14 16:32 /usr/bin/wx-config-ansi -> ../../usr/lib/wx/config/gtk2-ansi-release-2.6*
lrwxrwxrwx  1 root root     48 mai 14 16:33 /usr/bin/wx-config-unicode -> ../../usr/lib/wx/config/gtk2-unicode-release-2.6*
lrwxrwxrwx  1 root root     22 mai 14 16:32 /usr/bin/wxrc -> /etc/alternatives/wxrc*
-rwxr-xr-x  1 root root  59776 mai  6 13:08 /usr/bin/wxrc-2.6-ansi*
-rwxr-xr-x  1 root root  69152 mai  6 13:08 /usr/bin/wxrc-2.6-unicode*
lrwxrwxrwx  1 root root      3 mai 20 19:51 /usr/bin/wxvlc -> vlc*

Quote
# ls -l /usr/local/bin/wx*
lrwxrwxrwx  1 root root    46 mai 14 16:04 /usr/local/bin/wx-config -> /usr/local/lib/wx/config/gtk2-ansi-release-2.6*
lrwxrwxrwx  1 root root     8 mai 14 16:04 /usr/local/bin/wxrc -> wxrc-2.6*
-rwxr-xr-x  1 root root 74055 mai 14 16:04 /usr/local/bin/wxrc-2.6*
« Last Edit: May 21, 2005, 02:14:53 PM by 0x07 »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #3 on: May 21, 2005, 02:15:46 PM »

hmm ok, anyways try to run configure of amule with

./configure --with-wx-config=/usr/bin/wx-config-unicode + your options...

and see if configure works then...

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #4 on: May 21, 2005, 02:35:32 PM »

Result :

Quote
Configure script has finished system check.

  Configured aMule CVS for 'i686-redhat-linux-gnu'.

  aMule enabled options:

  **** aMule Core ****
  Prefix where aMule should be installed?                    /usr/local
  Should aMule be compiled in debug mode?                    yes
  Should aMule be compiled with profiling?                   no
  Should aMule be compiled with optimizations?               no
  Should aMule be compiled with taskbar icon support?        yes
  Should aMule be compiled with old GTK taskbar icon?        no
  Should aMule be compiled with UTF-8 taskbar icon support?  no
  Should aMule be linked against patched gsocket?            no
  Should aMule monolithic application be built?              yes
  Should aMule daemon version be built?                      no
  Should aMule remote gui be built? (EXPERIMENTAL)           no
  Should aMule Kademlia code be compiled? (DOESN'T WORK)     no
  Crypto++ library/headers style?                            embedded

  **** aMule TextClient ****
  Should aMule Command Line Client be built?                 no
  Should aMule GUI Client be built?                          no

  **** aMule WebServer ****
  Should aMule WebServer be built?                           no
  Should aMule WebServer GUI be built?                       no

  **** aMule ED2K Links Handler ****
  Should aMule ED2K Links Handler be built?                  yes

  **** aMuleLinkCreator ****
  Should aMuleLinkCreator GUI version (alc) be built?        no
  Should aMuleLinkCreator for console (alcc) be built?       no

  **** aMule Statistics ****
  Should C aMule Statistics (CAS) be built?                  no
  Should aMule GUI Statistics (wxCas) be built?              no

  **** General Libraries and Tools ****
  Should ccache support be enabled?                          no
  Libraries aMule will use to build:
                                       wxWidgets             2.6.0
                                       crypto++              embedded
                                       zlib                  1.2.2.2

It seems to work, so how can i do in order to "rpmbuild -ta aMule-CVS..." works ?
« Last Edit: May 21, 2005, 02:38:30 PM by 0x07 »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #5 on: May 21, 2005, 02:43:47 PM »

ok all as root

remove the old link
/usr/bin/wx-config

and make a new one
ln -s /usr/bin/wx-config-unicode /usr/bin/wx-config

run ldconfig, and should work

stefanero
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #6 on: May 21, 2005, 03:00:12 PM »

Ok, now I have :

Quote
# ll /usr/bin/wx-config
lrwxrwxrwx  1 root root 26 mai 21 15:12 /usr/bin/wx-config -> /usr/bin/wx-config-unicode*

but it doesn't work.

Quote
# rpmbuild -ta aMule-CVS-20050521.tar.bz2
sh: line 1: 30026 Broken pipe             bunzip2      30027                       | tar xOvf - \*.spec 2>&1 >/usr/src/RPM/SPECS/rpm-spec.ba2gj8
Exécution_de(%prep): /bin/sh -e /var/tmp/rpm-tmp.6399
+ umask 022
+ cd /usr/src/RPM/BUILD
+ cd /usr/src/RPM/BUILD
+ rm -rf amule-cvs
+ /usr/bin/bzip2 -dc /homeInternet/aMule-CVS-20050521.tar.bz2
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd amule-cvs
+ test -f /etc/redhat-release
+ DISTRO=FedoraCore
+ case $DISTRO in
+ grep -i LANG /etc/sysconfig/i18n
+ grep -i UTF-8
++ rpm -ql wxGTK-devel
++ grep 'wxgtk-2\.[0-9]-config'
++ rpm -ql wxBase
++ grep 'wxbase-2\.[0-9]-config'
+ CFLAGS='-O2 -fomit-frame-pointer -pipe -march=i586 -mtune=pentiumpro '
+ ./configure --prefix=/usr --disable-optimize --enable-debug --enable-cas --enable-wxcas --enable-amulecmd --enable-webserver --enable-ccache --with-wx-config= --with-wxbase-config=
checking build system type... i686-redhat-linux-gnu
checking host system type... i686-redhat-linux-gnu
checking target system type... i686-redhat-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for g++... g++
checking for C++ compiler default output... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... (cached) yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking whether ln -s works... yes
checking for ranlib... (cached) ranlib
checking for strip... strip
checking for ar... ar
checking for ld... ld
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for zlib >= 1.1.4... yes (version 1.2.2.2)
checking for gdlib-config... no
configure:
        WARNING: gd-lib >= 2.0.0, or a functional gd.h (from gd-devel) not found.
        gd-lib is needed for fully funtional cas. If you don't have gd-lib,
        cas will be compiled, but you won't be able to create that cool
        status image (text mode however will work). Also note that you should
        upgrade to gd-lib >= 2.0.22 if you intend to use it, other versions have
        not been tested and therefore are unsupported at the moment.
        Please check that gdlib-config is in your default path, check out
        LD_LIBRARY_PATH or equivalent variable.
        Or this might also be that your gdlib-config has other name.
        Please try again with --with-gdlib-config=/usr/bin/gdlib-config
        (replace /usr/bin/gdlib-config with a valid path to your gdlib-config).
        If you use compiled packages check if you have devel pack installed.
        To download the lastest version check http://www.boutell.com/gd
        for sources.
       
checking for libpng-config... /usr/bin/libpng-config
checking for libpng version >= 1.2.0... yes (version 1.2.8)
checking gd.h usability... no
checking gd.h presence... no
checking for gd.h... no
configure:
        WARNING: libpng-devel >= 1.2.0 is needed for amuleweb
       
checking whether we need the GUI... yes
checking for wx-config... /usr/bin/wx-config
Cannot execute /usr/bin/multiarch-i386-linux/wx-config
checking for wxWidgets version >= 2.4.2... no
configure: error:
         Please check that wx-config is in path, the directory
         where wxWidgets libraries are installed (returned by
         'wx-config --libs' command) is in LD_LIBRARY_PATH or
         equivalent variable and wxWidgets version is new enough.
         Or this might also be a bug in our configure. Please try again
         with --with-wx-config=/usr/bin/wx-config
         (replace /usr/bin/wx-config with a valid path to your wx-config)
         * Note:
         Most probably, either one of the above aren't correct, you don't
         have wxGTK installed, or are missing wxGTK-devel (or equivalent) package.
         
erreur: Mauvais status de sortie pour /var/tmp/rpm-tmp.6399 (%prep)


Erreur de construction de RPM:
    Mauvais status de sortie pour /var/tmp/rpm-tmp.6399 (%prep)
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #7 on: May 21, 2005, 03:14:40 PM »

you have funny configure option there can you leave

--with-wx-config= --with-wxbase-config=

those empty things out...
and does it work when you do normal confiugre? or breaks aswell?
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #8 on: May 21, 2005, 03:53:02 PM »

I can't choose, it's the 'configure' included in the .spec file of the archive.
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #9 on: May 21, 2005, 04:13:17 PM »

well, does it work when you do "normal" configur?
thats 1st thing I need to know
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #10 on: May 21, 2005, 04:21:52 PM »

no it doesn't.
always the same line :

Cannot execute /usr/bin/multiarch-i386-linux/wx-config

Quote
checking for wx-config... /usr/bin/wx-config
Cannot execute /usr/bin/multiarch-i386-linux/wx-config
checking for wxWidgets version >= 2.4.2... no
configure: error:
         Please check that wx-config is in path, the directory
         where wxWidgets libraries are installed (returned by
         'wx-config --libs' command) is in LD_LIBRARY_PATH or
         equivalent variable and wxWidgets version is new enough.
         Or this might also be a bug in our configure. Please try again
         with --with-wx-config=/usr/bin/wx-config
         (replace /usr/bin/wx-config with a valid path to your wx-config)
         * Note:
         Most probably, either one of the above aren't correct, you don't
         have wxGTK installed, or are missing wxGTK-devel (or equivalent) package.
« Last Edit: May 21, 2005, 04:22:39 PM by 0x07 »
Logged

stefanero

  • Some Support
  • Developer
  • Hero Member
  • *****
  • Karma: 8
  • Offline Offline
  • Posts: 4235
Re: Compilation error : Cannot execute wx-config
« Reply #11 on: May 22, 2005, 08:10:49 AM »

hum, well

if you did not change the links back...then I guess there is some other problem.

what you could do, is unpack your tgz, edit the spec file, and make the link to --with-wx-config right, and then pack it up again

sorry dont have any other sulution atm, but I wonder why it reads the symbolic link wrong
Logged
In its default setup, Windows XP on the Internet amounts to a car
parked in a bad part of town, with the doors unlocked, the key in
the ignition and a Post-It note on the dashboard saying, "Please
don't steal this."

0x07

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
Re: Compilation error : Cannot execute wx-config
« Reply #12 on: May 23, 2005, 07:34:45 PM »

ok.
What I did :
in amule-cvs dir :

I edited amule-CVS.spec to have :

Quote
--with-wx-config=/usr/bin/wx-config-unicode

I deleted amule.spec file.
Compilation worked.
Thanks stefanero
« Last Edit: May 23, 2005, 07:35:08 PM by 0x07 »
Logged