[Haskell-beginners] failure $ cabal install wx

Jeffrey Brown jeffbrown.the at gmail.com
Sun Mar 29 01:34:00 UTC 2015


Hi!

I first sent this to Haskell-Cafe, then thought this would be a better
destination.

I switched OSs, from Ubuntu to OpenSuse 13.2, to fix some other problems. I
since installed The Haskell Platform, and would like to install wxHaskell.

The first time I tried that under OpenSuse, cabal install wx provided more
output, installing a lot of things. Since then it has only given this:

    jeff at linux-ee07:~> cabal install wx
    Resolving dependencies...
    [1 of 1] Compiling Main             (
/tmp/wxc-0.91.0.0-16672/wxc-0.91.0.0/Setup.hs,
/tmp/wxc-0.91.0.0-16672/wxc-0.91.0.0/dist/setup/Main.o )
    Linking /tmp/wxc-0.91.0.0-16672/wxc-0.91.0.0/dist/setup/setup ...
    Configuring wxc-0.91.0.0...

                        Warning: No config found to match:
/usr/bin/wx-config --version=2.9 --version-full
                                         in /usr/lib64/wx/config
                        If you require this configuration, please install
the desired
                        library build.  If this is part of an automated
configuration
                        test and no other errors occur, you may safely
ignore it.
                        You may use wx-config --list to see all configs
available in
                        the default prefix.

    readProcess failed: readProcess: wx-config "--version=2.9"
"--version-full" (exit 1): failed
    Configuring wxc to build against wxWidgets 3.0.2.0

    Building wxc
    /usr/bin/gcc -Wl,--hash-size=31 -Wl,--reduce-memory-overheads
-Wl,--disable-new-dtags -Isrc/include -I/usr/include/wx-3.0
-I/usr/lib64/wx/include/gtk3-unicode-3.0 -D__WXGTK__ -DWXUSINGDLL
-DwxDEBUG_LEVEL=0 -D_FILE_OFFSET_BITS=64 -DwxcREFUSE_MEDIACTRL -fPIC -c
src/cpp/apppath.cpp -o dist/build/src/cpp/apppath.o
    gcc: error trying to exec 'cc1plus': execvp: No such file or directory
    Failed to install wxc-0.91.0.0
    cabal: Error: some packages failed to install:
    wx-0.91.0.0 depends on wxc-0.91.0.0 which failed to install.
    wxc-0.91.0.0 failed during the building phase. The exception was:
    ExitFailure 1
    wxcore-0.91.0.0 depends on wxc-0.91.0.0 which failed to install.
    jeff at linux-ee07:~>

The file /usr/bin/wx-config exists. It may have gotten there today when I
installed some wx packages via zypper (OpenSuse's equivalent to apt-get). I
don't remember which those packages were, but in the wx-configg file appear
these lines:

    this_version="3.0"
    [ -z "$output_option_release"       ] || echo "3.0"
    [ -z "$output_option_version"       ] || echo "3.0.2"
    [ -z "$output_option_version_full"  ] || echo "3.0.2.0"

so I believe the version of wx I have is 3.0.2.0.

I'm using a Lenovo Thinkpad Edge 535 or 545.

Thanks,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150328/9e29f622/attachment-0001.html>


More information about the Beginners mailing list