Open DeepakArath opened 10 years ago
I have tried 'Install from OPAM'. As its dependencies ( opam and ocaml ) are already installed in this machine, 'opam install batsh' should work. but its giving me this error:
" root@testing:~# opam install batsh The following actions will be performed:
=-=-= Installing batsh.0.0.5 =-=-= Building batsh.0.0.5: ocp-build root ocp-build build -njobs 8 ocp-build install -install-lib /root/.opam/system/lib/batsh [ERROR] The compilation of batsh.0.0.5 failed. Removing batsh.0.0.5. ocp-build root ocp-build uninstall -install-lib /root/.opam/system/lib/batsh
===== ERROR while installing batsh.0.0.5 =====
opam-version 1.1.1
os linux
command ocp-build root
path /root/.opam/system/build/batsh.0.0.5
compiler system (4.01.0)
exit-code 2
env-file /root/.opam/system/build/batsh.0.0.5/batsh-1960-ffb3fd.env
stdout-file /root/.opam/system/build/batsh.0.0.5/batsh-1960-ffb3fd.out
stderr-file /root/.opam/system/build/batsh.0.0.5/batsh-1960-ffb3fd.err
stdout
ocp-build: Entering directory `/root'
ocp-build: Leaving directory`/root'
stderr
find_project_root Updating ocp-build.root Error: Could not find target project root
'opam install batsh' failed. "
This problem might be because you did not install OCaml through OPAM. Please try to run opam switch 4.01.0
and build the latest commit of Batsh.
Hi, Thanks for the response. I tried opam switch 4.01.0
and building from the latest commit. But still it says,
"Error: Could not find target project root
make: *\ [ocp-build.root] Error 2"
Here is what i did, complete steps:
1 apt-get install python-software-properties
2 add-apt-repository ppa:avsm/ppa
3 apt-get update
4 apt-get install ocaml opam
5 opam init
6 opam config env (Asked by opam init
)
7 apt-get install make
8 opam switch 4.01.0 (This asks for opam init
and to install make
)
9 opam config env (Asked by opam switch 4.01.0
)
10 apt-get install m4 (Next step worked only after installing this)
11 opam install ocp-build core ounit dlist cmdliner
12 mkdir batsh
13 cd batsh/
14 wget https://codeload.github.com/BYVoid/Batsh/tar.gz/v0.0.5
15 tar -xvzf v0.0.5
16 cd Batsh-0.0.5/
17 ocp-build init (After reboot, make
command asks for ocp-build init
)
18 make
ocp-build root find_project_root Updating ocp-build.root Error: Could not find target project root make: *\ [ocp-build.root] Error 2
Any idea? Have i missed anything? Or Are my steps wrong? Please help.
After some searching i tried running this opam install typerex
. It worked for me and now make
command works. Thanks for your response. It worked.
Did you run
eval `opam config env`
Please let me know the version of your ocp-build
.
Will be solved by https://github.com/BYVoid/Batsh/issues/74 once done.
Hi, I am following this: https://github.com/BYVoid/Batsh document to install 'batsh' in by Ubuntu 12.04x64 virtual machine. I have installed opam and ocaml. Installed Dependecies with this command:
$opam install ocp-build core ounit dlist cmdliner
Downloded batsh. but while running $make command , I am getting this error:
" root@testing:~/batsh/Batsh-0.0.5# make ocp-build root find_project_root Updating ocp-build.root ERROR: the following packages are missing:
root@testing:~/batsh/Batsh-0.0.5# "
Please help me out. All the dependencies are installed as per the document.