berp-libs installed fine, berp-compiler is hanging up:
From what I can tell, the only hangup I have is that the "process" package depends on the wrong version of "directory".
[blaine@macbook:~/Dropbox/src/berp/compiler Tue Nov 15]
75$ cabal configure
Resolving dependencies...
Configuring berpcompiler-0.0.3...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package process-1.0.1.3 requires directory-1.0.1.0
package cpphs-1.13.2 requires directory-1.1.0.1
package berplibs-0.0.3 requires directory-1.1.0.1
package berpcompiler-0.0.3 requires directory-1.1.0.1
OK so I need to rebuild process so it uses the newest version of directory like the rest of them (I have no idea if this is the right thing to do, but this is what i did with cpphs and it worked). But when I try and build process, it can't find a header on my file that does exist. I also did successfully install from source package manually (
using these instructions on the
package downloaded from here, which worked fine, but didn't seem update the dependency to rely on the newest version of directory (aka still can't configure berp). I don't know where to go from here.
Please note: I have installed from source package, so even if I fix this cabal issue I'm not sure it will fix the dependency issue (but who knows, maybe it will). I'm having a hard time scaring up internet resources on where to proceed.
What am I doing wrong? Thanks so much in advance,
Blaine
Reference:
22$ uname -a
Linux macbook 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:17 UTC 2011 x86_64 GNU/Linux
(Here I am trying to force include the directory where the missing header file lives. It does exist but cabal won't have it)
[blaine@macbook:~/Dropbox/src/berp/compiler Tue Nov 08]
92$ sudo cabal --extra-include-dirs=/usr/lib/ghc-6.12.1/process-1.0.1.2/include/ install process
Resolving dependencies...
Configuring process-1.1.0.0...
configure: WARNING: unrecognized options: --with-compiler
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/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 pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for setitimer,... no
checking for sysconf... yes
checking value of SIG_DFL... -1
checking value of SIG_IGN... -1
configure: creating ./config.status
config.status: creating include/HsProcessConfig.h
config.status: include/HsProcessConfig.h is unchanged
configure: WARNING: unrecognized options: --with-compiler
cabal: Missing dependency on a foreign library:
* Missing header file: runProcess.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
process-1.1.0.0 failed during the configure step. The exception was:
ExitFailure 1
[blaine@macbook:~/Dropbox/src/berp/compiler Tue Nov 08]
93$ ls /usr/lib/ghc-6.12.1/process-1.0.1.2/include/
HsProcessConfig.h runProcess.h
Blaine