I built LLVM13 rc4 with OCaml bindings.
After running ninja install, I see the bindings is now installed in $HOME/.opam/4.12.0/lib/ocaml. However, I run dune build and it looks like the system does not realize the bindings is installed.
How do I add the built bindings to OCaml?
Thanks, I figured it out. I need to copy them from lib/ocaml/llvm to lib/llvm and lib/llvm/static
Related
Currently, I am working on the Ns3 simulator and now trying to enable the pyviz visualizer. According to the doc, I have downloaded the three dependencies which are
py27-pygtk
py27-pygoocanvas
py27-pygraphviz
Now in order to use this, I still need to enable the python bindings which I used /usr/bin/python2.7 ./waf configure wanna to check what needs for enabling python bindings. The result shows that
Python Bindings : not enabled (PyBindGen version not correct and newer version could not be retrieved)
So I checked the Doc and downloaded PyBindGen (version 0.18.0). The output shows
Installed /Library/Python/2.7/site-packages/PyBindGen-0.18.0-py2.7.egg
Processing dependencies for PyBindGen==0.18.0
Finished processing dependencies for PyBindGen==0.18.0
After I ran the configuration check the results still showed that PyBindGen version not correct and newer version could not be retrieved
So I presume that is that because I installed the wrong version of PyBindGen? If so how can I get the suitable version for enabling Python Binding?
I would appreciate if there is someone who can help me figure it out. Many thanks.
S.
According to the Google Group
Here is the resolution(tested it worked):
follow the instruction
hg clone http://code.nsnam.org/ns-3-allinone
cd ns-3-allinone && ./download.py
This will solve the Python Binding problem
Updated: after downloading this version of ns3. Solving the python binding problem. Then there will be another problem after running
./waf configure
it will show the result like this:
PyViz visualizer: not enabled (Missing python modules: gtk, goocanvas, pygraphviz)
Even though I have installed all of the three dependencies. So after some researches I found that there has another questions post So there is a guy gave the guessing that
" Waf found the standard Python here (/usr/bin/python is the Apple path), and you installed the python libraries using MacPorts.
Most probably you'll need to configure Python to point to the MacPort-based Python, or it will not see what you installed."
So according to How to: Macports select python
here is the solution:
port select --list python
sudo port select --set python python27
Hope it will help anyone come afterwards to use this.
S.
I have installed opam, and after this I can access ocaml, ocamlc, buildocaml successfully.
But I am reading Real World OCaml which is asking me to run a tool called corebuild.
I am not able to install (or run) corebuild.
If I search for sudo find / -name corebuild... I can see files like
/home/abhishek/.opam/repo/default/packages/core/core.109.38.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.42.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.35.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.34.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.47.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.41.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.32.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.37.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.45.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.36.00/files/corebuild
/home/abhishek/.opam/repo/default/packages/core/core.109.40.00/files/corebuild
But still then I don't know how to run this tool.
You need to run opam install core to get corebuild.
More generally, you should look at the install instructions here, which will show you which libraries to install. Note that corebuild is a simple wrapper around ocamlbuild, and it assumes that you have core installed, and gives you the option of using it by default.
I'm trying to build OPAM within Cygwin in Windows 8. Here is the error information during the configure stage:
configure: error: You must install the Camlp4 pre-processor. On some
operating systems, these are separate packages from the main OCaml
compiler, such as camlp4-extra on Debian.
I've searched cygwin repository using keywords "caml" and installed all the packages provided; however, the configuration still shows this error message. How can I install this Camlp4 pre-processor?
As long as OPAM doesn't work on windows, you can try GODI (windows port). It has basic windows support and you can install the most common packages through it.
I don't think OPAM works with windows quite yet. I've installed it on OSX and Linux and love it. On windows, though, there is a compilation error with unix_waitpid. This is because ocp-build/ocp-build.boot is a binary packaged with the OPAM source that requires the unix_waitpid instead of the win_waitpid function. I'm not exactly sure why they did this. But, after that their could be other issues.
Regarding the camlp4, running setup.exe of cygwin, I was easily able to find ocaml-camlp4 under interpreters. Depending on the tool-chain, I found it easy enough to just use the mingw binaries found through the ocaml website.
I've been struggling a bit trying to get this to work. Getting clojure 1.3 was a breeze, but now I've been trying to get contrib libraries to install and I get errors. Is there a guide on how to do this correctly?
The old clojure.contrib monolithic library is incompatible with clojure 1.3. See http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
As for how to install libraries correctly, either write your own pom.xml and use maven or use leiningen (much easier!) - https://github.com/technomancy/leiningen
I am building a C++ application that embeds the Lua scripting engine. I am developing on Linux (Ubuntu).
I have already installed Lua on my dev machine (by imstalling the lua5.1 package). I can run the Lua intepreter succesfully (via the cmd line).
However, when building, I get the following link error:
/usr/bin/ld: cannot find -llua5.1
I have searched the Ubuntu forums/package repositories etc but I cannot seem to find the required package. Can anyone help?
PS: I also need to install the development files for tolua++ (I'm not sure which Ubuntu package is the required one either).
I am on Ubuntu 10.0.4
Install the liblua5.1-dev package, and if that does not work compile Lua from sources.
Or you can try -llua instead of -llua5.1.
on Fedora 17 problem fixed:
sudo ln /usr/lib/liblua-5.1.so /usr/lib/liblua5.1.so
For tolua++, it looks like libtolua++5.1-dev is the package you want.