Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails on Mac OSX #57

Open
gianlucascoccia opened this issue Aug 30, 2016 · 4 comments
Open

Installation fails on Mac OSX #57

gianlucascoccia opened this issue Aug 30, 2016 · 4 comments

Comments

@gianlucascoccia
Copy link

gianlucascoccia commented Aug 30, 2016

Installed OCaml with brew, then I get the following error when I run opam install batsh

`=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
βˆ— installed conf-which.1
βˆ— installed result.1.2
βˆ— installed ocamlbuild.0.9.2
βˆ— installed cmdliner.0.9.8
βˆ— installed conf-m4.1
βˆ— installed ocamlfind.1.6.2
βˆ— installed base-bytes.base
βˆ— installed cppo.1.4.0
βˆ— installed fieldslib.113.24.00
βˆ— installed bin_prot.113.33.00+4.03
βˆ— installed ppx_tools.5.0+4.03.0
βˆ— installed re.1.6.1
βˆ— installed sexplib.113.33.00+4.03
βˆ— installed ppx_deriving.3.3
βˆ— installed typerep.113.24.00
βˆ— installed variantslib.113.24.00
βˆ— installed ppx_core.113.33.01+4.03
βˆ— installed ppx_optcomp.113.33.00+4.03
βˆ— installed ppx_driver.113.33.01+4.03
βˆ— installed ppx_here.113.33.00
βˆ— installed ppx_inline_test.113.33.00+4.03
βˆ— installed ppx_fail.113.33.00+4.03
βˆ— installed ppx_bench.113.33.00+4.03
βˆ— installed ppx_let.113.33.00+4.03
βˆ— installed ppx_pipebang.113.33.00+4.03
βˆ— installed ppx_type_conv.113.33.01+4.03
βˆ— installed typerex-build.1.99.17-beta
βˆ— installed ocp-build.1.99.17-beta
βˆ— installed dlist.0.1.0
βˆ— installed ppx_bin_prot.113.33.00+4.03
βˆ— installed ppx_compare.113.33.00+4.03
βˆ— installed ppx_enumerate.113.33.00+4.03
βˆ— installed ppx_fields_conv.113.33.00+4.03
βˆ— installed ppx_sexp_conv.113.33.01+4.03
βˆ— installed ppx_typerep_conv.113.33.00+4.03
βˆ— installed ppx_variants_conv.113.33.00+4.03
βˆ— installed ppx_assert.113.33.00
βˆ— installed ppx_custom_printf.113.33.00+4.03
βˆ— installed ppx_sexp_message.113.33.00+4.03
βˆ— installed ppx_sexp_value.113.33.00+4.03
βˆ— installed camlp4.4.03+1
βˆ— installed ppx_expect.113.33.01+4.03
βˆ— installed ppx_jane.113.33.00
βˆ— installed core_kernel.113.33.01+4.03
βˆ— installed core.113.33.02+4.03
[ERROR] The compilation of batsh failed at "ocp-build build batsh -njobs 8".
Processing 46/46: [batsh: ocp-build uninstall]

=== ERROR while installing batsh.0.0.6 =======================================

opam-version 1.2.2
os darwin
command ocp-build build batsh -njobs 8
path /Users/gianlucascoccia/.opam/4.03.0/build/batsh.0.0.6
compiler 4.03.0
exit-code 2
env-file /Users/gianlucascoccia/.opam/4.03.0/build/batsh.0.0.6/batsh-85684-70b84e.env
stdout-file /Users/gianlucascoccia/.opam/4.03.0/build/batsh.0.0.6/batsh-85684-70b84e.out
stderr-file /Users/gianlucascoccia/.opam/4.03.0/build/batsh.0.0.6/batsh-85684-70b84e.err

=# stderr #=

Compiler: ocaml 4.03.0
Warning: 16 old env warnings were not printed (add --env-warnings)
Warning: 53 old project warnings were not printed (add --project-warnings)
Error: Could not find target project batsh

=-=- Error report -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
The following actions failed
βˆ— install batsh 0.0.6
The following changes have been performed
βˆ— install base-bytes base
βˆ— install bin_prot 113.33.00+4.03
βˆ— install camlp4 4.03+1
βˆ— install cmdliner 0.9.8
βˆ— install conf-m4 1
βˆ— install conf-which 1
βˆ— install core 113.33.02+4.03
βˆ— install core_kernel 113.33.01+4.03
βˆ— install cppo 1.4.0
βˆ— install dlist 0.1.0
βˆ— install fieldslib 113.24.00
βˆ— install ocamlbuild 0.9.2
βˆ— install ocamlfind 1.6.2
βˆ— install ocp-build 1.99.17-beta
βˆ— install ppx_assert 113.33.00
βˆ— install ppx_bench 113.33.00+4.03
βˆ— install ppx_bin_prot 113.33.00+4.03
βˆ— install ppx_compare 113.33.00+4.03
βˆ— install ppx_core 113.33.01+4.03
βˆ— install ppx_custom_printf 113.33.00+4.03
βˆ— install ppx_deriving 3.3
βˆ— install ppx_driver 113.33.01+4.03
βˆ— install ppx_enumerate 113.33.00+4.03
βˆ— install ppx_expect 113.33.01+4.03
βˆ— install ppx_fail 113.33.00+4.03
βˆ— install ppx_fields_conv 113.33.00+4.03
βˆ— install ppx_here 113.33.00
βˆ— install ppx_inline_test 113.33.00+4.03
βˆ— install ppx_jane 113.33.00
βˆ— install ppx_let 113.33.00+4.03
βˆ— install ppx_optcomp 113.33.00+4.03
βˆ— install ppx_pipebang 113.33.00+4.03
βˆ— install ppx_sexp_conv 113.33.01+4.03
βˆ— install ppx_sexp_message 113.33.00+4.03
βˆ— install ppx_sexp_value 113.33.00+4.03
βˆ— install ppx_tools 5.0+4.03.0
βˆ— install ppx_type_conv 113.33.01+4.03
βˆ— install ppx_typerep_conv 113.33.00+4.03
βˆ— install ppx_variants_conv 113.33.00+4.03
βˆ— install re 1.6.1
βˆ— install result 1.2
βˆ— install sexplib 113.33.00+4.03
βˆ— install typerep 113.24.00
βˆ— install typerex-build 1.99.17-beta
βˆ— install variantslib 113.24.00 `

@achempion
Copy link

Have same problem.

output:

The following actions will be performed:
  βˆ—  install batsh 0.0.5

=-=- Gathering sources =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[batsh] Archive in cache

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=  🐫
[ERROR] The compilation of batsh failed at "ocp-build build -njobs 8".
Processing  1/1: [batsh: ocp-build uninstall]
#=== ERROR while installing batsh.0.0.5 =======================================#
# opam-version 1.2.2
# os           darwin
# command      ocp-build build -njobs 8
# path         /Users/achempion/.opam/4.00.1/build/batsh.0.0.5
# compiler     4.00.1
# exit-code    2
# env-file     /Users/achempion/.opam/4.00.1/build/batsh.0.0.5/batsh-98874-d2c37b.env
# stdout-file  /Users/achempion/.opam/4.00.1/build/batsh.0.0.5/batsh-98874-d2c37b.out
# stderr-file  /Users/achempion/.opam/4.00.1/build/batsh.0.0.5/batsh-98874-d2c37b.err
### stderr ###
# [14.1] 'camlp4o' 'src/bash_ast.ml'
# [...]
# File "src/bash_ast.ml", line 49, characters 17-21:
# Parse error: [semi] expected after [str_item] (in [implem])
#
# Error:
# [40.1] 'camlp4o' 'src/batsh_ast.ml'
#
# File "src/batsh_ast.ml", line 44, characters 17-21:
# Parse error: [semi] expected after [str_item] (in [implem])
#

@achempion
Copy link

achempion commented Feb 4, 2017

I've figured out how to install batsh:

$ opam switch 4.02.2
$ eval `opam config env`
$ opam install ocp-build core ounit dlist cmdliner
$ opam install "batsh=0.0.6"

Here we go

$ batsh

@dpdotjs
Copy link

dpdotjs commented Feb 24, 2017

@achempion Following your advice I also had to do:

opam install ocp-build=1.99.8-beta

due to the error:

The following dependencies couldn't be met:
  - batsh -> ocp-build = 1.99.8-beta
Your request can't be satisfied:
  - No package matches ocp-build.1.99.8-beta.

But it works now, thanks!

@XVilka
Copy link

XVilka commented Aug 8, 2019

Will be solved by #74 once done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants