fltkhs icon indicating copy to clipboard operation
fltkhs copied to clipboard

fltk-config: runInteractiveProcess: runInteractiveProcess: exec: does not exist

Open claudeha opened this issue 7 years ago • 0 comments

cabal-install -fbundled -fopengl fltkhs fails because it can't find the fltk-config that it built. There is a workaround and I have got it installed now, reporting this in case someone else has the same problem.

$ cabal install -fbundled -fopengl fltkhs
Resolving dependencies...
Notice: installing into a sandbox located at
/home/claude/code/borok/et/.cabal-sandbox
Configuring fltkhs-0.5.4.4...
Failed to install fltkhs-0.5.4.4
Build log ( /home/claude/code/borok/et/.cabal-sandbox/logs/fltkhs-0.5.4.4.log ):
cabal: Entering directory '/tmp/cabal-tmp-9029/fltkhs-0.5.4.4'
[1 of 1] Compiling Main             ( /tmp/cabal-tmp-9029/fltkhs-0.5.4.4/dist/dist-sandbox-953b16d5/setup/setup.hs, /tmp/cabal-tmp-9029/fltkhs-0.5.4.4/dist/dist-sandbox-953b16d5/setup/Main.o )
Linking /tmp/cabal-tmp-9029/fltkhs-0.5.4.4/dist/dist-sandbox-953b16d5/setup/setup ...
Building bundled FLTK
FLTK already built.
Running autoconf ...
Configuring fltkhs-0.5.4.4...
fltk-config: runInteractiveProcess: runInteractiveProcess: exec: does not exist (No such file or directory)cabal: Leaving directory '/tmp/cabal-tmp-9029/fltkhs-0.5.4.4'
cabal: Error: some packages failed to install:
fltkhs-0.5.4.4 failed during the configure step. The exception was:
ExitFailure 1

The bundled FLTK is built, but cabal can't find the built fltk-config:

$ find "fltk-config"
./.cabal-sandbox/lib/fltk-bundled/bin/fltk-config

Symlinking the binaries to somewhere cabal-install looks allows the build to proceed when retrying:

$ cd .cabal-sandbox/bin/
$ ln -s ../lib/fltk-bundled/bin/fltk-config 
$ ln -s ../lib/fltk-bundled/bin/fluid 
$ cd ../..
$ cabal install -fbundled -fopengl fltkhs
Resolving dependencies...
Notice: installing into a sandbox located at
/home/claude/code/borok/et/.cabal-sandbox
Configuring fltkhs-0.5.4.4...
Building fltkhs-0.5.4.4...
Warning: /tmp/pkgConf-fltkhs-0.5.47833686901102520059.4: Unrecognized field
abi-depends on line 107
/tmp/pkgConf-fltkhs-0.5.47833686901102520059.4: Unrecognized field indefinite
on line 15
Installed fltkhs-0.5.4.4
Updating documentation index
/home/claude/code/borok/et/.cabal-sandbox/share/ghc-8.0.1/doc/index.html

Versions, currently using those supplied by Debian Stretch (current stable):

$ cabal --version
cabal-install version 1.24.0.1
compiled using version 1.24.1.0 of the Cabal library 
$ ghc -V
The Glorious Glasgow Haskell Compilation System, version 8.0.1

claudeha avatar Feb 28 '18 20:02 claudeha