Building 0MQ under Cygwin - cygwin

I'm trying to build and install the ZeroMQ libraries (2.1.11 cloned from GitHub) under Cygwin (on a Windows 7 system).
configure gives me this error message:
configure: error: cannot link with -luuid, install the e2fsprogs
package
which persists even after I install e2fsprogs (1.41.14-1).
Is this a sign that ZeroMQ needs a real Ext2 file system? Where did I go wrong?

You need to install the libuuid-devel package. (When getting a linker error about -lxyz, searching http://cygwin.com/packages for libxyz usually does the trick.)

Related

Can't load FOT toolbox on Scilab 6.1.0

I recently installed the Scilab 6.1.0 on my Ubuntu 18.04 virtual machine on my windows pc. I am able to use the editor but cannot seem to load the Fossee Optimisation Toolbox. It installs successfully but shows the following error when restarting and trying to load the toolbox. I have already tried reinstalling Scilab and ubuntu. Can someone tell me how to resolve this?
atomsLoad: An error occurred while loading 'FOT-0.4':
exec: error on line #61: "link: The shared archive was not loaded: libquadmath.so.0: cannot open shared object file: No such file or directory"1
FOT is built using gfortran, and the missing library is one of its libraries. Scilab uses also gfortran and is including the corresponding libraries. But there is likely a version number mismatch, i.e. FOT has been built with a more recent version of gfortran. Installing a system wide gfortran with sudo apt-get install gfortran will probably install the version you need.

E: Unable to locate package ea-utils | Ubuntu 18.04

I am following this tutorial. I already have .fastq files. I want to install ea-utils.
My setup is Ubuntu 18.04 bionic, via Oracle VM Virtual Box.
In terminal, I entered the command:
>>>sudo apt install ea-utils
E: Unable to locate package ea-utils
First, I installed latest Ubuntu updates via. Software Updater.
Then,
>>>sudo apt-get update
E: Some index files failed to download. They have been ignored, or old ones used instead.
Still throwing an error:
>>>sudo apt-get install ea-utils
Second command said: E: Unable to locate package ea-utils.
You cannot install it using Git-Bash. Git-Bash is not a Linux environment (apt-get is a Linux utility that can be used in a Linux environment). Git-Bash is a subset of the MSYS (or MSYS2, not sure) collection of open source tools compiled for Windows
What you can try is
build your own version of ea-utils for Windows. build guide - I will elaborate if required
check if there are any precompiled binaries for it
Expanding on building/compiling your own binaries of programs
Normally a program is written in a programming language (e.g C/C++, Java) that humans can read. These are plain text files.
That is compiled into something computers can read
This compiled file is executable on the platform which it is compiled for - ends in .exe for Windows
This executable file is distributed as a 'precompiled binary' that is copied into (usually) C:\Program Files by the installation procedure
But things change in the world of open source software
You are given the original files of code written in a programming language
You use a compiler combined with other libraries to compile it into an executable file
MinGW is a collection of tools, including the C/C++ compiler for Windows
GSL is a library that provides some other code that ea-utils depends on for the compilation of the binaries
General instructions for building
(Sorry I cannot test these. I do not use Windows any more)
Install MinGW - accepting the defaults should work fine
Install GSL - try the link that says Setup (again, accept defaults)
Unzip the file you downloaded earlier from ea-utils' GitHub
Open command prompt
cd into the unzipped folder
(based on instructions on their wiki) make
make test
Since your updated question is based on using Ubuntu 18.04 in a VM and you there is still an error, I suggest trying
sudo apt-get update
sudo apt-get install ea-utils
Commonly, software in the Linux word is distributed as "packages" - e.g ea-utils. The first command contacts Ubuntu's repositories (they serve the packages) and generates a list of all the available packages.
That should fix the error of ea-utils not being found.
Following the constant errors being thrown,
Download the .deb file 64-bit version or 32-bit version according to the virtual machine you are running. Open it inside the virtual machine, and follow the onscreen instructions.

The program 'llvm-config' version ==9.0.* is required but it could not be found

I wanted to install llvm-hs with the command cabal install llvm-hs -fshared-llvm, according to the installation guide of Accelerate on the website: https://www.acceleratehs.org/get-started.html. But something errors. After that I tried cabal install llvm-hs and then I got the error message:
Linking C:\Users\.......\cabal-tmp-14364\llvm-hs-9.0.1\dist\setup\setup.exe ...
setup.exe: The program 'llvm-config' version ==9.0.* is required but it could
not be found.
cabal: Leaving directory 'C:\Users\.......\cabal-tmp-14364\llvm-hs-9.0.1'
cabal.exe: Error: some packages failed to install:
llvm-hs-9.0.1-IXEp6h558cdJJTwzKkubg0 failed during the configure step. The
exception was:
ExitFailure 1
So I tried to figure out how I can 'install' llvm-config, but I can't really find the solution to this problem. Does anyone know the solution?
It seems that you are trying to install Accelerate for Windows with an LLVM backend. As far as I know, this is not possible.
Basically, it comes down to the fact that Accelerate, actually the llvm-hs package, needs LLVM as a shared library. This was not possible on Windows, although I'm unsure if anything has changed in that regard in the last 2 years.
There are still two options to still use Accelerate on Windows.
Use it without a backend, this means you can still program in Accelerate and run it via the interpreter, although it will be slow in execution time.
Try to use Windows Subsystem for Linux. If you want to use the GPU backend (accelerate-llvm-ptx), I believe that is now possible since of WSL 2 (following the instructions here). Or if you want the multicore backend accelerate-llvm-native that should be possible. Although of course, you will need to install LLVM first, you can follow the normal install instructions for Linux.

Installing gearman on windows 7 through cygwin and get "configure: error: Unable to find libevent"

I'm a newbie trying to install gearman on windows through cygwin using the tutorial here: http://www.phpvs.net/2010/11/30/installing-gearman-and-gearmand-on-windows-with-cygwin/
I need to install gearman to develop on my windows 7 laptop.
I've installed libevent in my C:\cygwin\libeventInstall directory but when I do a ./configure on gearman it gives me the error: configure: error: Unable to find libevent
I've read that I need to install libevent-devel. I don't know what libevent-devel is and how I go about installing it through cygwin. I've found a bunch of .rpm install files for libevent-devel but I don't think I can install that on windows. I've also found a libevent-devel-2.0.11-1.tar.bz2 but it contains a bunch of header files and no configure file. There doesn't seem to be any documentation on exactly how to install libevent-devel on cygwin.
Been stuck for a few days. Any pointers would be helpful. Thanks!
You need to build LibEvent, it is not included in Cygwin. I haven't tried this, but a google search led to the following instructions:
you need
http://win6.jp/Cygwin/cygwin-1.5.25-15-ipv6-0.22.zip
http://monkey.org/~provos/libevent-1.4.9-stable.tar.gz
unpack cygwin-1.5.25-15-ipv6-0.22.zip into you cygwin folder about this files read site http://win6.jp/Cygwin/
in libevent http.c file add line ---> #define EAI_SYSTEM 11
now install libevent
./configure
make
make install
I also found this SO thread interesting since the Libevent devs were commenting.
Gave up on using cygwin. Tried a reinstalling libevent as per the above and re-running gearman ./configure and the "configure: error: Unable to find libevent" persists.
Took James Butler's advice and am using virtualbox instead. Thanks.

Problem installing sqlite3-ruby on cygwin

I'm getting error while trying to install sqlite3-ruby gem:
gem install sqlite3-ruby-1.3.1.gem
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby-1.3.1.gem:
ERROR: Failed to build gem native extension.
/usr/bin/ruby.exe extconf.rb
Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.9.1/gems/sqlite3-ruby-1.3.1/ext/sqlite3/gem_make.out
Same using:
gem install sqlite3-ruby-1.3.1
And that worked:
gem install sqlite3-ruby-1.3.1-x86-mswin32-60.gem
However I discovered I had had installed sqlite-ruby-1.2.5
Well my question is how 'gem' is installing these things? Why it can't choose sqlite3-ruby-1.3.1-x86-mswin32-60.gem version automatically. Does 'gem' is aware of running on linux or windows? What is native extension for it and why it is failing to install predownloaded sqlite3-ruby-1.3.1.gem
Thanks in advance
Lots of people seem to be having this issue. I'm surprised this doesn't work out of the box, as I would have guessed cygwin+ruby+sqlite is a supercommon configuration. Anyway. Many people concentrate on sqlite3.h, which is what appears are missing in the error output. However, my problem was that gcc wasn't installed correctly. Apparently gcc can fail to install correctly under cygwin. I fixed that and it was fine. Also, make sure you install libsql3-devel in cygwin.
I've been down this road before. I failed installing Ruby in Windows to work with Cygwin and I failed on Ubuntu.
What you do to save yourself the time and trouble is get a VM running with a Linux image (Fedora seemed to work well) and work with Ruby in that.

Resources