Inline-r does not build with cabal

50 views
Skip to first unread message

Rodolpho Pueyrredón

unread,
Oct 21, 2017, 1:31:47 PM10/21/17
to haskellr
Hello guys. I'm having trouble installing inline-r with the cabal. My system is Windows 10. Also occurs on windows 7
The commands I use are:

cabal sandbox init
cabal init
cabal install c2hs
cabal install inline-r==0.9.* --extra-include-dirs="C:/Program Files/R/R-3.4.2/include" --extra-lib-dirs="C:/Program Files/R/R-3.4.2/bin/x64"

The error:

src\Control\Monad\R\Class.hs:36:11: error:
    * The default type signature for acquire:
        forall s (a :: SEXPTYPE).
        (MonadIO m, Region m ~ G) =>
        SEXP s a -> m (SEXP G a)
      does not match its corresponding non-default type signature
    * When checking the class method:
        acquire :: forall (m :: * -> *).
                   MonadR m =>
                   forall (a :: SEXPTYPE). SEXP V a -> m (SEXP (Region m) a)
      In the class declaration for `MonadR'
   |
36 |   default acquire :: (MonadIO m, Region m ~ G) => SEXP s a -> m (SEXP G a)
   |           ^^^^^^^
cabal: Leaving directory 'C:\Users\RODOLP~1\AppData\Local\Temp\cabal-tmp-21612\inline-r-0.9.0.1'
cabal: Error: some packages failed to install:
inline-r-0.9.0.1-GJgaH7oq9Vs1NreklruEr8 failed during the building phase. The
exception was:
ExitFailure 1

somebody save me!!

Rodolpho Pueyrredón

unread,
Oct 27, 2017, 4:47:11 PM10/27/17
to haskellr
I was able to solve the problem. It was ghc compiler compatibility with the package. But now I have another. When I import H.Prelude it occurs:

*** Exception: R: readCreateProcess: does not exist (No such file or directory)

Alexander Vershilov

unread,
Oct 28, 2017, 12:51:42 PM10/28/17
to haskellr
Hello Rodolpho!

It seems that R executable is not in your path. I see that you have installed it because otherwise it would not be possible
to install inline-r and H. However it seems either ghci or R is not in your %PATH%.
Currently the only thing that creates process is H executable and it calls ghci, no other part of the code is starting
process. Can you check if ghci and R are in your %PATH%?

Can you also describe the actions you are doing so I could try to reproduce the problem?

--
Regards, Alexander. 
Reply all
Reply to author
Forward
0 new messages