At ubuntu, If I do:
$ haxelib config
I get:
/home/suhaib/haxelib/
which has those libraries installed:
actuate haxelib random
however, if I tried to compile the project, I get error, as:
$ haxe schoolbus.hxml Error: Error: Library Random is not installed :
run 'haxelib install Random'
although random is already installed.
Any idea?
Related
I have been trying to install gtk3 with cabal, following instructions on https://wiki.haskell.org/Gtk2Hs/Installation , with the exception I have replace gtk with gtk3, I downloaded the all in one bundle of gtk 3.6.4 (from: http://www.tarnyko.net/dl/gtk.htm) unzip it and added the location_of_files/bin to my path, running pkg-config --cflags gtk+-3.0 works ok, cabal install gtk2hs-buildtools correctly installs, but cabal install gtk3 stops with:
Resolving dependencies...
Configuring glib-0.13.4.1...
Failed to install glib-0.13.4.1
Build log ( C:\Users\User\AppData\Roaming\cabal\logs\glib-0.13.4.1.log ):
cabal: Entering directory 'C:\Users\User\AppData\Local\Temp\cabal-tmp-6472\glib-0.13.4.1'
[1 of 1] Compiling Main ( C:\Users\User\AppData\Local\Temp\cabal-tmp-6472\glib-0.13.4.1\dist\setup\setup.hs, C:\Users\User\AppData\Local\Temp\cabal-tmp-6472\glib-0.13.4.1\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\cabal-tmp-6472\glib-0.13.4.1\dist\setup\setup.exe ...
Configuring glib-0.13.4.1...
setup.exe: Missing dependency on a foreign library:
* Missing C library: intl
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Leaving directory 'C:\Users\User\AppData\Local\Temp\cabal-tmp-6472\glib-0.13.4.1'
And the gtk bundle I download have a libintl.h file in the include folder and a dll in the bin folder, I tried placing the files in almost every location I could think of but to no avail, i can’t think of anything else.
More details: I am running windows 7 x64 with haskell-platform 8.0.2 x64, and I really need this to work under windows for a project I am working.
I manage to install gtk by following the instruction in https://www.gtk.org/download/windows.php, installing MSYS2 and using pacman to install gtk library, ignoring only step 4. After installing the libraries I added to my path C:\msys64\mingw64\bin, and cabal finally compiled gtk3.
I did not like this solution cause it is one more mingw installation on my pc.
I've Redhat 7.2 running Cinnamon, and hate the docks provided, how come I can't resize the area a widgit is allocated? All apps are jammed into half the dock.
Drives me to compile cairo-dock from source as it isn't an ibm redhat blessed package.
cmake .. -DCMAKE_INSTALL_PREFIX=/usr
...
-- checking for module 'wayland-client>=1.0.0'
-- package 'wayland-client>=1.0.0' not found
-- checking for module 'gtk+-3.0>=3.4.0'
-- package 'gtk+-3.0>=3.4.0' not found
so I find gtk version is 3.14.13-16.el7 using yum list installed "gtk*"
I downloaded gtk 3.4.4 and compiled it and follow the INSTALL provided, sudo make install, which completes with no errors
rerunning cmake gives me the same error, so I'm wondering if I had to remove 3.14? I'm not really sure how best to proceed and thought it best to get some advice. I'm not really in the mood to break things. Thanks for your time and consideration.
Calvin, I'm also IBMer and installed RHEL7.2 from IBM's image.
I could successfully download the sources and install Cairo Docker and respective plugins.
I followed the instructions in this page here:
Glx-Dock - Generic:Compilation
First, install all dependencies below from official IBM repository.
I used the same package names for the Fedora dependencies and some may NOT exist for RHEL. Therefore, some plugins won't be available by fetching dependencies from official repository only - but the Cairo Docker will work.
sudo yum install cmake make pkgconfig gcc gcc-c++ gettext glib2-devel\
cairo-devel librsvg2-devel dbus-glib-devel libxml2-devel libXrender-devel\
mesa-libGL-devel mesa-libGLU-devel pango-devel libXxf86vm-devel\
libXtst-devel libXrandr-devel libX11-devel libcurl-devel gtk3-devel\
vte3-devel lm_sensors-devel libxklavier-devel libexif-devel\
libetpan-devel gnome-menus-devel alsa-lib-devel libical-devel\
upower-devel libzeitgeist-devel
Untar the packages and build with the commands described there except that you need to force the lib64 in both main and plugin builds with:
cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_LIB64=yes
I'd like to do some graphing in my Haskell program, but when I try to install plot I get the following error.
Preprocessing library plot-0.2.3.4...
lib/Graphics/Rendering/Plot/Figure/Simple.hs:37:8:
Could not find module ‘Numeric.Container’
Use -v to see a list of the files searched for.
lib/Graphics/Rendering/Plot/Types.hs:25:8:
Could not find module ‘Data.Packed.Vector’
Use -v to see a list of the files searched for.
lib/Graphics/Rendering/Plot/Types.hs:26:8:
Could not find module ‘Data.Packed.Matrix’
Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
plot-0.2.3.4 failed during the building phase. The exception was:
ExitFailure 1
Following this issue I updated hmatrix to version 0.17.0.1 but still get the same error. Any ideas?
Are you managing the project with cabal, or are you just installing into the global package space?
I would move to either using cabal or stack to manage the dependencies.
FWIW I've verified that plot-0.2.3.4 will compile with hmatrix-0.16.1.5 using the stack resolver lts-3.7 so I don't think it's a problem with hmatrix.
If you are using cabal, post your cabal file and we can figure out how to make it work. Otherwise, I would recommend creating a stack project, eg.
run stack new project-name
edit project-name.cabal and add plot to the build-depends: fields
run stack build
Configuring hmatrix-0.16.1.5...
setup-Simple-Cabal-1.22.4.0-x86_64-linux-ghc-7.10.2: Missing dependencies on
foreign libraries:
* Missing C libraries: blas, lapack
Found the libblas library I needed via:
sudo apt-cache search blas | grep dev
from: https://github.com/albertoruiz/hmatrix/blob/master/INSTALL.md#linux
sudo apt-get install libblas-dev libgsl0-dev liblapack-dev libatlas-base-dev
setup: The pkg-config package 'cairo' version >=1.2.0 is required but it could
not be found.
After some putzing around on the wiki pages for gtk2hs
sudo apt-get install libghc-gtk-dev
Now it should install successfully.
stack install plot
Intermediate errors are from me re-attempting stack install plot. These instructions assume Ubuntu 14.04 but you can translate what packages you need to Mac OS X / Windows.
As the other poster said, this was with the 0.16 version of hmatrix.
I have managed to install cairo, but when I run cabal install svgcairo I get the following error:
setup.exe: The pkg-config package librsvg-2.0 version >=2.16.0 is required but it could not be found.
I'm on windows 8 x64, with cabal version 1.16.02 and ghc 7.6.3.
You need to install librsvg in a location that ghc can find first. Check out http://librsvg.sourceforge.net/download/ for downloads, but you might have to build it from source yourself, which is beyond the scope of this answer. Then just make sure that wherever you've installed the library is on your path and that pkg-config can find it, and you should be good to go.
I built llvm 3.0, downloaded from here. I did:
./configure CC=gcc CXX=g++ --enable-shared
sudo make -j5 -s install
Next, I cloned the LLVM bindings from here. I am trying:
runhaskell Setup configure
But I get:
Configuring llvm-3.0.0.0...
Setup.lhs: At least the following dependencies are missing:
llvm-base ==3.0.*, type-level -any
I am running Linux Mint 64-bit (equivalent to Ubuntu 11.0). GHC is 6.12.3. I tried a cabal install but apparently the llvm version is too old to run some examples (am I mistaken?).
What am I doing wrong?
Bryan recently split the llvm package in two, that split has not yet made it to hackage. So if you don't want to simply cabal install the hackage version,
install the type-level package (cabal install should work fine)
cd into the base subdirectory of the llvm-repo, install llvm-base
cd into the llvm directory, install
I have not tried it, so it might not work, but usually Bryan's repos are buildable, so there's a good chance that it does.