Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] problems installing coqprime

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] problems installing coqprime


Chronological Thread 
  • From: Benoît Viguier <beviguier AT gmail.com>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] problems installing coqprime
  • Date: Mon, 13 Jan 2020 12:03:09 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=beviguier AT gmail.com; spf=Pass smtp.mailfrom=beviguier AT gmail.com; spf=None smtp.helo=postmaster AT mail-wm1-f67.google.com
  • Ironport-phdr: 9a23:vpOubhVak+4ZmvESkk28FGIaalXV8LGtZVwlr6E/grcLSJyIuqrYbBGHt8tkgFKBZ4jH8fUM07OQ7/m7HzZfud3b6jgrS99lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUhrwOhBoKevrB4Xck9q41/yo+53Ufg5EmCexbal9IRmrowjdrNcajIl+Jqo+1BfFvGZDdvhLy29vOV+dhQv36N2q/J5k/SRQuvYh+NBFXK7nYak2TqFWASo/PWwt68LlqRfMTQ2U5nsBSWoWiQZHAxLE7B7hQJj8tDbxu/dn1ymbOc32Sq00WSin4qx2RhLklDsLOjgk+2zRl8d+jr9UoAi5qhJi3YDUboGbOvlwcKzTctwVR3ZOUMlKWixdAY6xdZcDA/YPMOtaqYT2ulsArQG5BQmpHO7i1yFHhnnx3bU0z+QuCQ7J3A0vH9ITsXTbss/1P7oVXO+u0qbI0zTDb/xL2Tf89ofIaAssof6JXb1qcMrRzVMjGB/CjlWVsIHoOS6e2OoKs2ie9eVgVOSvhnYgqw5tuDevw8MshpPOhoIPxVDI7SR5wIAvJd25UkF3e9CkEIFIuyGVNot2XsMiQ3xztyog1rIGvpu7cDAWx5Qg3h7TcuCIc4+R4hL7TuaRIDJ4i2x/dL2imRmy706twfD/WMmsyFtGsDZJn93Wun0O1xHf8NWLRuV+80u72DuC1Rjf5vxLLE00j6bXNoMtz78qmpYOv0nOHjX6lUb1gaKQa04q4PKn6/79bbXjvpKcN5F7igX5Mqk2n8ywG+U4MgwXU2mV/OSwyaTv/UP4TbhIlPE2na7ZsJfVJcQfuKG1GRNa0oEm6xqnDjem1soXnWUfIV5bZB6Ki5LlNlLOLfziEPuznVehnC1qyv3EJrHhB4/CLnnHkLfvZ7Z97EtcxRIowt9B+ZJUC74BIO/yWkDvrtzVFRA5MwmuzObmDNVxzJ8RWWWKAqOBKqPdrUeI5v4zI+mLfIIapDH9K+E86/HyiX85hEQScLKy3ZoXbXC4Bu5pL1+YYXrqmNcBEH0FshAwTOzw2xW+VmtYYG/3VKYh7Bk6DpinBMHNXNODmruEiQ22GJrQeld4C1+REHryP9GOVukNZz+TL9VJnTkNVLznQIgkg0L9/DTmwqZqe7KHshYTsojugYAsu7/j0Coq/DkxNPyzlnmXRjgtzGwNTj4ymqt4pB4lkwbR4e1Dm/VdUOdrybZMWwY+O4TbyrUjWd/3UwPFONyOTQT/G4j0MXQKVts0huQ2TQN9FtGl1E2R2iOrB/oKkuXOCsJrtK3b2Hf1KoB2zHOUjKQ=

Hi Raj,

On 1/13/20 11:48 AM,
Rajeev.Gore AT anu.edu.au
wrote:
> Hi Benoit,
>
> I am using 8.6-5build1 (apparently :)
>
> The reason I am using ubuntu 18.04 is because the webpage that I mentioned
> previously says it was tested on ubuntu 18.04.
>
> I did the following:
>
> - I did a sudo apt install opam in my home directory (which appears to
> have worked)
>
> - I literally typed in "opam repo add coq-extra-dev
> https://coq.inria.fr/opam/extra-dev"; but it complained with
>
> # opam-version 1.2.2
> # os linux
> File /home/rajeevgore/.opam/config does not exist
>
> I did a quick search on ".opam/config does not exist" but could not find
> anything useful.
>
> What am doing wrong please?

1. You are using an old version of Opam.

2. You did not do "opam init".

Have a look at here on how to upgrade/install opam 2.0 :
https://opam.ocaml.org/blog/opam-2-0-0/

Once opam is installed it is important to do `opam init` as this will
create the `.opam` repository:

```
opam init
eval $(opam env)
```

A good practice is to create a switch and install a more recent ocaml
compiler than the one proposed by Ubuntu.
You can see the one proposed by opam with:

```
opam switch list-available
```

You chose an ocaml-base-compiler from that list e.g.  4.08.1

```
opam switch create your-project-name 4.08.1
eval $(opam env)

```

After which you can do:
```
opam repo add coq-released https://coq.inria.fr/opam/released
opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
opam update
```

This will add the repositories for the latest coq versions and coq packages.

From this point onward, you can do:
```
opam install coqide coq-coqprime
```

Good Luck.

> thanks,
> raj
>
> On 13 January 2020 Benoît Viguier
> (beviguier AT gmail.com)
> writes:
>> Hi Raj,
>>
>> The version of Ubuntu is not really helping. More importantly, which
>> version of Coq are using?
>>
>> I would suggest you try using this version (instead of the
>> gforge.inria.fr one which we don't know when it was last updated):
>>
>> https://github.com/thery/coqprime
>>
>> It is available via Opam in the extra dev repo:
>>
>> https://github.com/coq/opam-coq-archive/blob/master/extra-dev/packages/coq-coqprime/coq-coqprime.dev/opam
>>
>> *
>>
>> |opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev|
>>
>> *
>>
>> opam install coq-coqprime||
>>
>>
>> On 1/13/20 11:14 AM,
>> Rajeev.Gore AT anu.edu.au
>> wrote:
>>> Hi all,
>>>
>>> I am not sure whether this is the proper mailing list for asking this
>>> question, so apologies in advance if it is not.
>>>
>>> I am trying to install coqprime. But at a certain point, I get the error
>>> below.
>>>
>>> I am using ubuntu 18.04 and I tried to follow the instructions here
>>> http://coqprime.gforge.inria.fr/
>>> under the heading "If your number has more than 100 decimal digits ".
>>>
>>> A quick search on the "Unable to local library" showed some discussions
>>> about how one can replace -I with -R but I am afraid that
>>> I am not competent to understand the details.
>>>
>>> What am I doing wrong please?
>>>
>>> raj
>>>
>>> rajeevgore@rajeevgore-900X3C-900X3D-900X4C-900X4D:~/CoqPrime/coqprime$
>>> make all
>>> cd Tactic; make all
>>> make[1]: Entering directory '/home/rajeevgore/CoqPrime/coqprime/Tactic'
>>> coqc -q -I . Tactic
>>> make[1]: Leaving directory '/home/rajeevgore/CoqPrime/coqprime/Tactic'
>>> cd N; make all
>>> make[1]: Entering directory '/home/rajeevgore/CoqPrime/coqprime/N'
>>> coqc -q -I . -I ../Tactic NatAux
>>> File "./NatAux.v", line 15, characters 15-21:
>>> Error: Unable to locate library Tactic.
>>> Makefile:112: recipe for target 'NatAux.vo' failed
>>> make[1]: *** [NatAux.vo] Error 1
>>> make[1]: Leaving directory '/home/rajeevgore/CoqPrime/coqprime/N'
>>> Makefile:2: recipe for target 'all' failed
>>> make: *** [all] Error 2
>>>
>>>
>> Hi Raj,
>>
>> The version of Ubuntu is not really helping. More importantly, which
>> version of Coq are using?
>>
>> I would suggest you try using this version (instead of the
>> gforge.inria.fr one which we don't know when it was last updated):
>>
>> [1]https://github.com/thery/coqprime
>>
>> It is available via Opam in the extra dev repo:
>>
>> [2]https://github.com/coq/opam-coq-archive/blob/master/extra-dev/packag
>> es/coq-coqprime/coq-coqprime.dev/opam
>> *
>> opam repo add coq-extra-dev [3]https://coq.inria.fr/opam/extra-dev
>> *
>> opam install coq-coqprime
>>
>> On 1/13/20 11:14 AM,
>> [4]Rajeev.Gore AT anu.edu.au
>> wrote:
>>
>> Hi all,
>>
>> I am not sure whether this is the proper mailing list for asking this
>> question,
>> so apologies in advance if it is not.
>>
>> I am trying to install coqprime. But at a certain point, I get the error
>> below.
>>
>> I am using ubuntu 18.04 and I tried to follow the instructions here
>> [5]http://co
>> qprime.gforge.inria.fr/
>> under the heading "If your number has more than 100 decimal digits ".
>>
>> A quick search on the "Unable to local library" showed some discussions
>> about ho
>> w one can replace -I with -R but I am afraid that
>> I am not competent to understand the details.
>>
>> What am I doing wrong please?
>>
>> raj
>>
>> rajeevgore@rajeevgore-900X3C-900X3D-900X4C-900X4D:~/CoqPrime/coqprime$
>> make all
>> cd Tactic; make all
>> make[1]: Entering directory '/home/rajeevgore/CoqPrime/coqprime/Tactic'
>> coqc -q -I . Tactic
>> make[1]: Leaving directory '/home/rajeevgore/CoqPrime/coqprime/Tactic'
>> cd N; make all
>> make[1]: Entering directory '/home/rajeevgore/CoqPrime/coqprime/N'
>> coqc -q -I . -I ../Tactic NatAux
>> File "./NatAux.v", line 15, characters 15-21:
>> Error: Unable to locate library Tactic.
>> Makefile:112: recipe for target 'NatAux.vo' failed
>> make[1]: *** [NatAux.vo] Error 1
>> make[1]: Leaving directory '/home/rajeevgore/CoqPrime/coqprime/N'
>> Makefile:2: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>> References
>>
>> 1. https://github.com/thery/coqprime
>> 2.
>> https://github.com/coq/opam-coq-archive/blob/master/extra-dev/packages/coq-coqprime/coq-coqprime.dev/opam
>> 3. https://coq.inria.fr/opam/extra-dev
>> 4.
>> mailto:Rajeev.Gore AT anu.edu.au
>> 5. http://coqprime.gforge.inria.fr/
>



Archive powered by MHonArc 2.6.18.

Top of Page