Looks like there is a problem (at least on your machine/OS) with version
0.16 of the Haskell library cryptonite that some of the Elm tools
transitively depend on. You could try adding --constraint=cryptonite<0.16
to the cabal install commands.
​

2016-06-04 13:05 GMT+02:00 Rani Bitake <[email protected]>:

> *when i run this: *   cabal install -j --only-dependencies
> --ghc-options="-w" elm-compiler elm-package elm-make elm-repl
>
> *it gives the follwing error:*
>
> cbits/cryptonite_rdrand.c: In function ‘cryptonite_cpu_has_rdrand’:
>
> cbits/cryptonite_rdrand.c:40:2:
>      error: inconsistent operand constraints in an ‘asm’
> cabal: Error: some packages failed to install:
> connection-0.2.5 depends on cryptonite-0.16 which failed to install.
> cryptonite-0.16 failed during the building phase. The exception was:
> ExitFailure 1
> http-client-tls-0.2.4 depends on cryptonite-0.16 which failed to install.
> tls-1.3.8 depends on cryptonite-0.16 which failed to install.
> x509-1.6.3 depends on cryptonite-0.16 which failed to install.
> x509-store-1.6.1 depends on cryptonite-0.16 which failed to install.
> x509-system-1.6.3 depends on cryptonite-0.16 which failed to install.
> x509-validation-1.6.3 depends on cryptonite-0.16 which failed to install.
>
>
> On Tuesday, 31 May 2016 11:17:57 UTC+5:30, Janis Voigtländer wrote:
>>
>> Here is what you can do (if you have at least GHC 7.10 and cabal 1.18 on
>> that machine, and if cabal had a chance to update its package cache at
>> least once recently on that machine, by running cabal update, which
>> itself requires internet access):
>>
>> Create the following directory structure:
>>
>> Elm-Platform\
>> Elm-Platform\elm-compiler
>> Elm-Platform\elm-package
>> Elm-Platform\elm-make
>> Elm-Platform\elm-repl
>>
>> The contents of these directories you get by downloading the 0.17 release
>> zips from GitHub. For example, up front download
>> https://github.com/elm-lang/elm-compiler/archive/0.17.0.zip, unzip it,
>> and rename the contained directory elm-compiler-0.17.0 into simply
>> elm-compiler.
>>
>> Then, inside the Elm-Platform directory run:
>>
>> cabal sandbox init
>> cabal sandbox add-source elm-compiler
>> cabal sandbox add-source elm-package
>> cabal sandbox add-source elm-make
>> cabal sandbox add-source elm-repl
>> cabal install -j --only-dependencies --ghc-options="-w" elm-compiler 
>> elm-package elm-make elm-repl
>> cabal install -j elm-compiler elm-package elm-make elm-repl
>>
>> This will not give you elm-reactor. It’s simply impossible to build that
>> without internet access during the build.
>>
>> Also, even after you have successfully installed the above way without
>> internet access, actually using the tools will require internet access for
>> elm-package to download stuff. But you can prepare Elm project
>> directories on another machine, install packages there, then move them over
>> to the machine without internet access.
>> ​
>>
>> 2016-05-31 6:34 GMT+02:00 Nikhil Dhar <[email protected]>:
>>
>>> Yes ,,
>>>>
>>> Actually I have to build this without using internet ,,,
>>> and Buildfromsource.hs uses internet while running
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Elm Discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Elm Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to