No subject


Sun Oct 23 10:51:38 CEST 2011


depends on the wrong version of "directory".
[blaine at 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<http://www.haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package>on
the package
downloaded from here <http://hackage.haskell.org/package/process-1.0.1.3>,
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 at 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 at 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

--f46d043be1d4504ed504b1cb6566
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi everyone. I&#39;m new to haskell (venturing over from python land);=A0i =
can&#39;t figure this one problem out. This has been incredibly difficult t=
o solve, and it is quite discouraging! i&#39;m trying to get berp up and ru=
nning (<a href=3D"https://github.com/bjpop/berp/">https://github.com/bjpop/=
berp/</a>).<div>

<div><div><br></div><div>berp-libs installed fine, berp-compiler is hanging=
 up:</div><div><br></div><div>From what I can tell, the only hangup I have =
is that the &quot;process&quot; package depends on the wrong version of &qu=
ot;directory&quot;.=A0</div>

<div>[blaine at macbook:~/Dropbox/src/berp/compiler Tue Nov 15]</div><div>75$ =
cabal configure</div><div>Resolving dependencies...</div><div>Configuring b=
erpcompiler-0.0.3...</div><div>Warning: This package indirectly depends on =
multiple versions of the same</div>

<div>package. This is highly likely to cause a compile failure.</div><div><=
u><b>package process-1.0.1.3 requires directory-1.0.1.0</b></u></div><div>p=
ackage cpphs-1.13.2 requires directory-1.1.0.1</div><div>package berplibs-0=
.0.3 requires directory-1.1.0.1</div>

<div>package berpcompiler-0.0.3 requires directory-1.1.0.1</div><div><br></=
div><div>OK so I need to rebuild process so it uses the newest version of d=
irectory like the rest of them (I have no idea if this is the right thing t=
o do, but this is what i did with cpphs and it worked). But when I try and =
build process, it can&#39;t find a header on my file that does exist. I als=
o did successfully install from source package manually (<a href=3D"http://=
www.haskell.org/haskellwiki/Cabal/How_to_install_a_Cabal_package">using the=
se instructions</a> on the <a href=3D"http://hackage.haskell.org/package/pr=
ocess-1.0.1.3">package downloaded from here</a>, which worked fine, but did=
n&#39;t seem update the dependency to rely on the newest version of directo=
ry (aka still can&#39;t configure berp). I don&#39;t know where to go from =
here.</div>

<div><br></div><div>Please note: I have installed from source package, so e=
ven if I fix this cabal issue I&#39;m not sure it will fix the dependency i=
ssue (but who knows, maybe it will). I&#39;m having a hard time scaring up =
internet resources on where to proceed.</div>

<div><br></div><div>What am I doing wrong? Thanks so much in advance,</div>=
<div>Blaine</div><div><br></div><div>Reference:</div><div><div>22$ uname -a=
</div><div>Linux macbook 2.6.32-34-generic #77-Ubuntu SMP Tue Sep 13 19:39:=
17 UTC 2011 x86_64 GNU/Linux</div>

</div><div><br></div><div>(Here I am trying to force include the directory =
where the missing header file lives. It does exist but cabal won&#39;t have=
 it)</div><div>[blaine at macbook:~/Dropbox/src/berp/compiler Tue Nov 08]</div=
>

<div>92$ sudo cabal --extra-include-dirs=3D/usr/lib/ghc-6.12.1/process-1.0.=
1.2/include/ install process</div><div>Resolving dependencies...</div><div>=
Configuring process-1.1.0.0...</div><div>configure: WARNING: unrecognized o=
ptions: --with-compiler</div>

<div>checking for gcc... gcc</div><div>checking whether the C compiler work=
s... yes</div><div>checking for C compiler default output file name... a.ou=
t</div><div>checking for suffix of executables...=A0</div><div>checking whe=
ther we are cross compiling... no</div>

<div>checking for suffix of object files... o</div><div>checking whether we=
 are using the GNU C compiler... yes</div><div>checking whether gcc accepts=
 -g... yes</div><div>checking for gcc option to accept ISO C89... none need=
ed</div>

<div>checking how to run the C preprocessor... gcc -E</div><div>checking fo=
r grep that handles long lines and -e... /bin/grep</div><div>checking for e=
grep... /bin/grep -E</div><div>checking for ANSI C header files... yes</div=
>

<div>checking for sys/types.h... yes</div><div>checking for sys/stat.h... y=
es</div><div>checking for stdlib.h... yes</div><div>checking for string.h..=
. yes</div><div>checking for memory.h... yes</div><div>checking for strings=
.h... yes</div>

<div>checking for inttypes.h... yes</div><div>checking for stdint.h... yes<=
/div><div>checking for unistd.h... yes</div><div>checking for pid_t... yes<=
/div><div>checking vfork.h usability... no</div><div>checking vfork.h prese=
nce... no</div>

<div>checking for vfork.h... no</div><div>checking for fork... yes</div><di=
v>checking for vfork... yes</div><div>checking for working fork... yes</div=
><div>checking for working vfork... (cached) yes</div><div>checking signal.=
h usability... yes</div>

<div>checking signal.h presence... yes</div><div>checking for signal.h... y=
es</div><div>checking sys/wait.h usability... yes</div><div>checking sys/wa=
it.h presence... yes</div><div>checking for sys/wait.h... yes</div><div>

checking fcntl.h usability... yes</div><div>checking fcntl.h presence... ye=
s</div><div>checking for fcntl.h... yes</div><div>checking for setitimer,..=
. no</div><div>checking for sysconf... yes</div><div>checking value of SIG_=
DFL... -1</div>

<div>checking value of SIG_IGN... -1</div><div>configure: creating ./config=
.status</div><div>config.status: creating include/HsProcessConfig.h</div><d=
iv>config.status: include/HsProcessConfig.h is unchanged</div><div>configur=
e: WARNING: unrecognized options: --with-compiler</div>

<div>cabal: Missing dependency on a foreign library:</div><div><b>* Missing=
 header file: runProcess.h</b></div><div>This problem can usually be solved=
 by installing the system package that</div><div>provides this library (you=
 may need the &quot;-dev&quot; version). If the library is</div>

<div>already installed but in a non-standard location then you can use the =
flags</div><div>--extra-include-dirs=3D and --extra-lib-dirs=3D to specify =
where it is.</div><div>cabal: Error: some packages failed to install:</div>

<div>process-1.1.0.0 failed during the configure step. The exception was:</=
div><div>ExitFailure 1</div><div><br></div><div>[blaine at macbook:~/Dropbox/s=
rc/berp/compiler Tue Nov 08]</div><div>93$ ls /usr/lib/ghc-6.12.1/process-1=
.0.1.2/include/</div>

<div>HsProcessConfig.h <b>runProcess.h</b></div><div><br></div><div><br cle=
ar=3D"all">Blaine<br>
</div></div></div>

--f46d043be1d4504ed504b1cb6566--



More information about the Haskell-Cafe mailing list