When I try to install why3-coq on my MacBook Pro, I got the following error message
userde-MacBook-Pro:~ user$ opam install why3-coq
[WARNING] Opam package conf-python-3.1.0.0 depends on the following system
package that can no longer be found: python#3
The following actions will be performed:
↻ recompile dune 2.9.3 [upstream or system changes]
↻ recompile ocamlfind 1.9.3 [upstream or system changes]
↻ recompile stdlib-shims 0.3.0 [uses dune]
...
===== ∗ 2 ↻ 23 ↗ 1 =====
Do you want to continue? [Y/n] y
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
...
⬇ retrieved why3-coq.1.5.1 (cached)
[ERROR] The compilation of dune.2.9.3 failed at "./dune.exe build -p dune
--profile dune-bootstrap -j 7".
Processing 32/102: [ocamlfind: ./configure]
#=== ERROR while compiling dune.2.9.3 =========================================#
# context 2.1.2 | macos/x86_64 | ocaml.4.13.1 | https://opam.ocaml.org#ac449189
# path ~/.opam/default/.opam-switch/build/dune.2.9.3
# command ~/.opam/opam-init/hooks/sandbox.sh build ./dune.exe build -p dune --profile dune-bootstrap -j 7
# signalled -7
# env-file ~/.opam/log/dune-4900-2cb712.env
# output-file ~/.opam/log/dune-4900-2cb712.out
<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><> 🐫
┌─ The following actions failed
│ λ build dune 2.9.3
└─
╶─ No changes have been performed
But when I try to install dune along, it says dune is already installed
userde-MacBook-Pro:~ user$ opam install dune
[WARNING] Opam package conf-python-3.1.0.0 depends on the following system
package that can no longer be found: python#3
[NOTE] Package dune is already installed (current version is 2.9.3).
Does anyone know what is the potential problem and how to solve it?
UPDATE
I tried to go to the path and build manually (when use a new opam switch, it upgrades to dune.3.4.1, but all behaviors remain the same). This give me a killed 9 response.
userde-MacBook-Pro:~ user$ cd ~/.opam/4.14.0/.opam-switch/build/dune.3.4.1
userde-MacBook-Pro:dune.3.4.1 user$ ~/.opam/opam-init/hooks/sandbox.sh build ./dune.exe build dune.install --release --profile dune-bootstrap -j 7
Killed: 9
Related
I want to install opam menhir but make the install explicit for coq 8.12 to make my script explicit + robust to installation.
But when I ask it to show me it show the dev tag, which I assume might change at any point and make the install brittle. The project is hosted in gitlab and it doesn't seem it lets me make a git issue here so asking here. From the available options is dev actually robust/stable? I don't want future installs to break:
(iit_synthesis) brando9~ $ opam install -y menhir
[NOTE] Package menhir is already installed (current version is dev).
(iit_synthesis) brando9~ $
(iit_synthesis) brando9~ $ opam show menhir
<><> menhir: information on all versions ><><><><><><><><><><><><><><><><><><><>
name menhir
all-installed-versions 20190626 [coq-8.10] dev [coq-8.12]
all-versions 20120123 20130116 20130911 20140422 20141215 20150914 20150921 20151005 20151012 20151023 20151026 20151030
20151103 20151112 20160303 20160504 20160526 20160808 20160825 20161114 20161115 20170101 20170418 20170509
20170607 20170712 20171013 20171206 20171222 20180528 20180530 20180703 20180905 20181006 20181026 20181113
20190613 20190620 20190626 20190924 20200123 20200211 20200525 20200612 20200619 20200624 20201122 20201201
20201214 20201216 20210310 20210419 20210929 20211012 20211125 20211128 20211230 20220210 dev
<><> Version-specific details <><><><><><><><><><><><><><><><><><><><><><><><><>
version dev
repository coq-extra-dev
source-hash 98f5c17e
url.src "git+https://gitlab.inria.fr/fpottier/menhir.git#master"
homepage "http://gitlab.inria.fr/fpottier/menhir"
bug-reports "menhir#inria.fr"
dev-repo "git+https://gitlab.inria.fr/fpottier/menhir.git"
authors "François Pottier <francois.pottier#inria.fr>"
"Yann Régis-Gianas <yrg#pps.univ-paris-diderot.fr>"
maintainer "francois.pottier#inria.fr"
depends "ocaml" {>= "4.02.3"}
"dune" {>= "2.2.0"}
"menhirLib" {= version}
"menhirSdk" {= version}
synopsis An LR(1) parser generator
cross: https://coq.discourse.group/t/what-is-the-tag-for-menhir-for-coq-8-12-when-instlaling-it-with-opam-install-y/1889
source: https://coq.discourse.group/t/what-is-the-tag-for-menhir-for-coq-8-12-when-installing-it-with-opam-install-y/1889/3?u=brando90
Answer emilio gave:
Coq 8.12 was mostly tested with menhir 20190626 , you can see this in the Docker file:
github.com
coq/coq/blob/v8.12/dev/ci/docker/bionic_coq/Dockerfile
# CACHEKEY: "bionic_coq-v8.12-V2020-10-12-V1"
# ^^ Update when modifying this file.
FROM ubuntu:bionic
LABEL maintainer="e#x80.org"
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update -qq && apt-get install --no-install-recommends -y -qq \
# Dependencies of the image, the test-suite and external projects
m4 automake autoconf time wget rsync git gcc-multilib build-essential unzip jq \
# Dependencies of lablgtk (for CoqIDE)
libgtksourceview-3.0-dev \
# Dependencies of stdlib and sphinx doc
texlive-latex-extra texlive-fonts-recommended texlive-xetex latexmk \
python3-pip python3-setuptools python3-pexpect python3-bs4 fonts-freefont-otf \
# Dependencies of source-doc and coq-makefile
texlive-science tipa
# More dependencies of the sphinx doc
This file has been truncated. show original
So that version is a good bet, but as Paolo points out, it depends on what menhir user you are interested in.
thus command I ran:
# dev seems fine but scary to use dev tag: question for alternative: https://stackoverflow.com/questions/75465305/what-is-the-tag-for-menhir-for-coq-8-12-when-installing-it-with-opam-install-y
#opam install -y menhir
opam pin add -y menhir 20190626
# run bellow in case above break when using the intended coq switch
#opam install -y menhir=dev
output successful:
(metalearning_gpu) brando9~/proverbot9001/deps/StructTact $ opam install -y menhir 20190626
opam: PACKAGES... arguments: Package name "20190626" should contain at least
one letter
Usage: opam install [OPTION]... [PACKAGES]...
Try `opam install --help' or `opam --help' for more information.
(metalearning_gpu) brando9~/proverbot9001/deps/StructTact $ opam pin add -y menhir 20190626
menhir is now pinned to version 20190626
The following actions will be performed:
⊘ remove menhirLib dev [conflicts with menhir]
⊘ remove menhirSdk dev [conflicts with menhir]
↘ downgrade menhir dev to 20190626*
===== ↘ 1 ⊘ 2 =====
<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
⊘ removed menhir.dev
⊘ removed menhirLib.dev
⊘ removed menhirSdk.dev
⬇ retrieved menhir.20190626 (cached)
∗ installed menhir.20190626
Done.
# Run eval $(opam env) to update the current shell environment
(metalearning_gpu) brando9~/proverbot9001/deps/StructTact $
(metalearning_gpu) brando9~/proverbot9001/deps/StructTact $ eval $(opam env)
i am using coturn and i want to use mongodb as a database
when i run the turnserver it shows
SQLite supported, default database location is /var/lib/turn/turndb
0: Redis supported
0: PostgreSQL supported
0: MySQL supported
0: MongoDB is not supported
0:
0: Default Net Engine version: 3 (UDP thread per CPU core)
i have installed coturn
using this command
sudo apt-get install coturn
and the coturn docs says
mongo-c-driver packages are not available "automatically". MongoDB
support will not be compiled, unless you install it "manually" before
the TURN server compilation. Refer to
https://github.com/mongodb/mongo-c-driver for installation
instructions of the driver.
and tried to install mongo c driver by following this guide
Install libmongoc with a Package Manager
apt-get install libmongoc-1.0-0
Build environment on Unix
On Debian / Ubuntu:
$ sudo apt-get install cmake libssl-dev libsasl2-dev
Configuring the build
Preparing a build from a git repository clone
$ git clone https://github.com/mongodb/mongo-c-driver.git
$ cd mongo-c-driver
$ git checkout 1.17.0 # To build a particular release
$ python build/calc_release_version.py > VERSION_CURRENT
$ mkdir cmake-build
$ cd cmake-build
$ cmake -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF ..
Executing a build
Building on Unix, macOS, and Windows (MinGW-W64 and MSYS2)¶
$ cmake --build .
$ sudo cmake --build . --target install
and
~/mongo-c-driver/cmake-build$cmake --build . help
returned
Unknown argument help
Usage: cmake --build <dir> [options] [-- [native-options]]
Options:
<dir> = Project binary directory to be built.
--target <tgt> = Build <tgt> instead of default targets.
May only be specified once.
--config <cfg> = For multi-configuration tools, choose <cfg>.
--clean-first = Build target 'clean' first, then build.
(To clean only, use --target 'clean'.)
--use-stderr = Ignored. Behavior is default in CMake >= 3.0.
-- = Pass remaining options to the native tool.
and
Generating the documentation
cmake -DENABLE_MAN_PAGES=ON -DENABLE_HTML_DOCS=ON ..
returned
-- No CMAKE_BUILD_TYPE selected, defaulting to RelWithDebInfo
file VERSION_CURRENT contained BUILD_VERSION 1.17.0
-- Build and install static libraries
-- Using bundled libbson
libbson version (from VERSION_CURRENT file): 1.17.0
-- struct timespec found
Adding -fPIC to compilation of bson_static components
CMake Error at CMakeLists.txt:10 (_message):
Could NOT find Sphinx (missing: SPHINX_EXECUTABLE)
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:137 (message)
/usr/share/cmake-3.10/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
build/cmake/FindSphinx.cmake:10 (find_package_handle_standard_args)
src/libbson/CMakeLists.txt:444 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/user/mongo-c-driver/cmake-build/CMakeFiles/CMakeOutput.log".
See also "/home/user/mongo-c-driver/cmake-build/CMakeFiles/CMakeError.log".
cmake --build . --target mongoc-doc
make: *** No rule to make target 'mongoc-doc'. Stop.
and when i restart the coturn server it still shows that mongodb is not supported
how can i resolve this issue
sudo apt-get install python3-sphinx
I'm trying to build flow so that I can make modifications to their code and build my own version to use and test. But when I'm trying to build it, it dies. The following steps were used:
Install OCaml (followed steps from https://ocaml.org/docs/install.html)
Install Opam
Run:
opam update
opam pin add flowtype . -n
opam install --deps-only flowtype
Then, I tried to make it:
make
At the very first seconds, it dies with:
ocamlbuild \
-use-ocamlfind -pkgs compiler-libs.common,unix \
-I scripts \
scripts/ppx_gen_flowlibs.native
+ ocamlfind ocamldep -package wtf8 -package dtoa -package unix -package compiler-libs.common -modules scripts/ppx_gen_flowlibs.ml > scripts/ppx_gen_flowlibs.ml.depends
ocamlfind: Package `wtf8' not found
Command exited with code 2.
Compilation unsuccessful after building 1 target (0 cached) in 00:00:01.
Makefile:300: recipe for target '_build/scripts/ppx_gen_flowlibs.native' failed
make: *** [_build/scripts/ppx_gen_flowlibs.native] Error 10
It is possible that only I missed something, but I'm not really into OCaml and Opam at the moment.
The pertinent error info appears to be ocamlfind: Package 'wtf8' not found.
Have you inited opam? If not you need to run opam init --comp 4.03.0 and restart your shell before running the other opam commands. (For more detail, see https://opam.ocaml.org/doc/Usage.html).
If you have, run opam list and see if wtf8 is in the list of installed packages. If it is not in the list, try running opam install wtf8. If it is in the list, try following the solutions to this same issue here ocamlfind cannot see installed package.
I'm working on Solaris 11.3 with Sun Studio 12.5. When I attempt to configure with Cmake out-of-tree, Cmake finishes with configuration errors and does not produce the makefiles. In-tree may be broken, too. But our procedures say to build out-of-tree, so that;' what I do.
I have nearly no Cmake experience. Others contributed the the CMake files, and I struggle with tasks related to them. I'm not sure if I am doing something wrong, if our Cmake files are broken, or if Cmake is not well tested under Solaris.
What is going on with CMake, and how do I fix it?
Here are the links to the Cmake files. I can copy/paste them, but it just takes up a bunch of space. The files are hosted on GitHub so they should always be available.
CMakefileList.txt
cryptopp-config.cmake
Here is Solaris' Cmake version, prior to me installing 3.6.2:
$ cmake --version
cmake version 2.8.6
Below is from Solaris Cmake version 2.8.6.
cryptopp-build$ export CXX=/opt/developerstudio12.5/bin/CC
cryptopp-build$ export CXXFLAGS="-DNDEBUG -g2 -O2 -D__SSE2__ -D__SSE3__ -D__SSSE3__ -D__SSE4_1__ -D__SSE4_2__ -D__AES__ -D__PCLMUL__ -D__RDRND__ -D__RDSEED__ -D__AVX__ -D__AVX2__ -D__BMI__ -D__BMI2__ -D__ADX__ -xarch=avx2_i"
cryptopp-build$ cmake ../cryptopp
-- The CXX compiler identification is unknown
-- Check for working CXX compiler: /bin/c++
-- Check for working CXX compiler: /bin/c++ -- broken
CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:45 (MESSAGE):
The C++ compiler "/bin/c++" is not able to compile a simple test program.
It fails with the following output:
Change Dir: /export/home/test/cryptopp-build/CMakeFiles/CMakeTmp
Run Build Command:/bin/gmake "cmTryCompileExec/fast"
/bin/gmake -f CMakeFiles/cmTryCompileExec.dir/build.make
CMakeFiles/cmTryCompileExec.dir/build
gmake[1]: Entering directory
`/export/home/test/cryptopp-build/CMakeFiles/CMakeTmp'
/usr/bin/cmake -E cmake_progress_report
/export/home/test/cryptopp-build/CMakeFiles/CMakeTmp/CMakeFiles 1
Building CXX object CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o
/bin/c++ -DNDEBUG -g2 -O2 -D__SSE2__ -D__SSE3__ -D__SSSE3__ -D__SSE4_1__
-D__SSE4_2__ -D__AES__ -D__PCLMUL__ -D__RDRND__ -D__RDSEED__ -D__AVX__
-D__AVX2__ -D__BMI__ -D__BMI2__ -D__ADX__ -xarch=avx2_i -o
CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o -c
/export/home/test/cryptopp-build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx
c++: error: language arch=avx2_i not recognized
c++: error: language arch=avx2_i not recognized
gmake[1]: Leaving directory
`/export/home/test/cryptopp-build/CMakeFiles/CMakeTmp'
gmake[1]: *** [CMakeFiles/cmTryCompileExec.dir/testCXXCompiler.cxx.o] Error
1
gmake: *** [cmTryCompileExec/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:9 (project)
-- Configuring incomplete, errors occurred!
And:
$ /opt/developerstudio12.5/bin/CC -V
CC: Studio 12.5 Sun C++ 5.14 SunOS_i386 2016/05/31
I built Cmake 3.6.2 from sources and installed in /usr/local to attack the CXX compiler identification is unknown issue, but it appears to be having some troubles. As I said earlier, I'm not a Cmake expert (and I'm not sure how one can mess up a make && sudo make install).
cryptopp-build$ cmake ../cryptopp
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
CMake Error: Error executing cmake::LoadCache(). Aborting.
Clearing the cache as suggested by #AndrewHenle results in:
# The project GNUmakefile clears all Cmake artifacts because Cmake cannot seem to do it on its own
$ cd cryptopp
$ git status -s
$
$ cd ..
$ rm -rf cryptopp-build
$ mkdir cryptopp-build
$ cd cryptopp-build
# Using 3.6.2 now
$ cmake ../cryptopp
CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/bin
CMake Error: Error executing cmake::LoadCache(). Aborting.
So there appeared to be two problems. First was the down level Sun supplied Cmake. There's nothing genius about diagnosing it as "too old".
The second issue was more interesting. It appears the CMake Error: Could not find CMAKE_ROOT !!! was cause by sudo make install Once I switched to sudo gmake install the issue went away.
Here are the bug reports on the issue:
Cmake Issue 16302: Cmake fails to identify Sun Studio 12.5 compiler
Cmake Issue 16303: Cmake fails to produce a working installation on Solaris 11.3
I am following a coq tutorial, which requires a basic coq OPAM library coq:io:system. But I got errors with OPAM. (This is with Ubuntu14.04, coq 8.4pl6 and opam1.2.1)
I googled around and didn't find any solution.
Does anyone know what the problem might be and how to fix this error?
Thanks.
=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
∗ installed coq:function-ninjas.1.0.0
∗ installed coq:error-handlers.1.0.0
∗ installed coq:io.3.0.0
∗ installed coq:list-plus.1.1.0
[ERROR] The compilation of coq:list-string failed at "ruby pp.rb".
∗ installed ppx_tools.0.99.2
∗ installed lwt.2.4.8
∗ installed coq:io:system:ocaml.2.2.0
#=== ERROR while installing coq:list-string.2.1.0 =============================#
# opam-version 1.2.1
# os linux
# command ruby pp.rb
# path /home/zhen/.opam/system/build/coq:list-string.2.1.0
# compiler system (4.02.1)
# exit-code 127
# env-file /home/zhen/.opam/system/build/coq:list-string.2.1.0/coq:list-string-2159-326a35.env
# stdout-file /home/zhen/.opam/system/build/coq:list-string.2.1.0/coq:list-string-2159-326a35.out
# stderr-file /home/zhen/.opam/system/build/coq:list-string.2.1.0/coq:list-string-2159-326a35.err
### stdout ###
It turns out that (as the error message suggests), this particular package seems to depend on ruby.
I was able to finish the installation after installing ruby with sudo apt-get install ruby.