How do you compile Mesos on OS X Yosemite - macos

I followed the directions outlined here: http://mesos.apache.org/gettingstarted/
I checked everything out and then ran:
$ xcode-select --install
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install autoconf automake libtool subversion maven
When I go into the mesos directory and run ./bootstrap I get the following:
ln: .git/hooks/pre-commit: Not a directory
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --warnings=all -I m4
aclocal: error: aclocal: file '/usr/local/share/aclocal/libmcrypt.m4' does not exist
autoreconf: aclocal failed with exit status: 1
Not sure what I'm doing wrong, any help is much appreciated.
EDIT
Just thought I'd add that the selected answer solved the issue for me. After running make check I had 3 tests that failed. I ran it again and got 5 that failed. I exhaustively ran
$ ./bin/mesos-tests.sh --gtest_filter="NAMEOFFAILEDTEST" --verbose
and ended up with only three that failed because Docket tests are not supported on non-linux systems:
[ FAILED ] ExamplesTest.TestFramework
[ FAILED ] ExamplesTest.NoExecutorFramework
[ FAILED ] ExamplesTest.PersistentVolumeFramework
Hope this helps others in the future.

aclocal: error: aclocal: file '/usr/local/share/aclocal/libmcrypt.m4' does not exist
That file is provided by MCrypt. brew install mcrypt

Related

An issue with installation of ansible-pylibssh on Apple Silicon M2

I've got an issue with installation of ansible-pylibssh.
During installation
pip3 install --user ansible-pylibssh
I got
ld: library not found for -lssh
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/clang' failed with exit code 1
Could someone explain how to overcome this?
I've already done softlink
% cd /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
% sudo ln -s /opt/homebrew/Cellar/libssh/0.10.4/include/libssh/ libssh
Install libssh:
brew install libssh
Use a python virtual environment :
python3 -m venv .venv
source .venv/bin/activate
EDIT:
Install with correct compiler flags:
CFLAGS="-I $(brew --prefix)/include -I ext -L $(brew --prefix)/lib -lssh" pip install ansible-pylibssh
Thanks, #webknjaz!
OLD Additional steps not needed (preserved for history):
Install tox build tool:
pip install 'tox >= 3.19.0'
Build from source on ARM-based Macs, per the ansible-pylibssh docs:
#git clone https://github.com/ansible/pylibssh.git ~/src/github/ansible/pylibssh
# or, if you use SSH:
git clone ssh://git#github.com/ansible/pylibssh.git ~/src/github/ansible/pylibssh
cd ~/src/github/ansible/pylibssh
Use libraries installed by brew with clang:
export CFLAGS="-I $(brew --prefix)/include -I ext -L $(brew --prefix)/lib -lssh"
Build ansible-pylibssh:
tox -e build-dists
Install built ansible-pylibssh wheel:
pip install ~/src/github/ansible/pylibssh/dist/ansible_pylibssh*.whl
Additional resources that lead to this answer:
Kristof Rado's answer to Cannot install ansible-pylibssh on macOS
ansible/pylibssh GitHub issue 207 provides background on why this package is not available for macOS on ARM from PyPi (symlink/softlink to point to the libraries did not help. Correct compiler flags were the needed answer.)
If you prefer not to work with a virtual environment, this may work: replace pip commands python3 -m pip --user and python commands with python3.

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

Compiling Tilde text editor on MacOS

I'm trying to compile The Tilde Text Editor under MacOS 10.12.2 (Sierra) with no previous experience in compiling (so please correct me on anything) and I'm getting this error:
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/libt3window.la] Error 1
Steps so far (some are redundant):
Install homebrew, Xcode
brew install cmake
brew install gettext
brew link --force gettext
brew install autoconf (?)
brew install automake (?)
brew install libtool
brew install pkg-config
brew install libunistring
brew install libsigc++
build libtranscript from source by changing this from configure:
[ -z "${LIBTOOL}" ] && LIBTOOL="libtool"
to this:
[ -z "${LIBTOOL}" ] && LIBTOOL="glibtool"
and this in Makefile.in
LIBTOOL=libtool
to this:
LIBTOOL=glibtool
then ./configure && make && sudo make install
build libt3window from source by changing configure and Makefile.in like with libtranscript, then ./configure && make. So with make the error shows up:
duplicate symbol __t3_modifier_hack in:
src/.libs/window.o
src/.libs/terminal_init.o
ld: 5 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [src/libt3window.la] Error 1
And one more question: how to I remove everything I installed?
This is caused by a bug in libt3window (a missing "extern" in the declaration of the _t3_modifier_hack variable). This is fixed in version 0.2.6 of libt3window.

dfu-programmer 0.6.2 error message during ./bootstrap.sh

I'm after little help. I'm working on a hobby project to create a mouse from an Arduino with an accelerometer.
For part of this I need to change the firmware on the atmega16u2. I have a mac so to do this I am trying to use the dfu-programmer.
When I use the ./bootstrap.sh command line in terminal I get the following error messages displayed. I was wondering if anyone could shed some light on what they mean and if this would prevent the program from working ?
DJ:dfu-programmer-0.6.2 hd334$ ./bootstrap.sh
sh: autom4te: command not found
aclocal: error: echo failed with exit status: 127
./bootstrap.sh: line 3: autoheader: command not found
sh: autoconf: command not found
automake: error: autoconf failed with exit status: 127
./bootstrap.sh: line 5: autoconf: command not found
DJ:dfu-programmer-0.6.2 hd334$
You need to install autom4te, autoheader, autoconf, libusb-compat and libusb before executing dfu-programmer.
All those auto* prerequisites are included in autoconf package. I recommend you to install home-brew package manager. It can do these things automatically. Although there is dfu-programmer package in the repository, so you can install it automatically too.
To install home-brew, run this command in your Terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Recommended: After that, install dfu-programmer with this command:
brew install dfu-programmer
If you want to install prerequisites only, run this command:
brew install autoconf libusb libusb-compat
then rerun ./bootstrap.sh.

Why can't I install libzmq in order to have ratchet working ? (Websocket)

Not sure if I'm posting on the correct Stack Exchange forum. Please redirect me to the proper one if needed.
When setting up Ratchet, I need to install ZeroMQ and I am stuck at the libzmq installation:
I have followed the instructions https://github.com/zeromq/libzmq/blob/master/INSTALL
I'm on mac os X 10.9
when doing the following command:
./autogen.sh
here is what I get:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I config --force -I config
main::scan_file() called too early to check prototype at /opt/lo/bin/aclocal line 617.
autoreconf: configure.ac: tracing
autoreconf: configure.ac: subdirectory
foreign/openpgm/build-staging/openpgm/pgm/ not present
autoreconf: configure.ac: not using Libtool
autoreconf: running: /opt/lo/bin/autoconf --include=config --force
configure.ac:57: error:
possibly undefined macro: AC_LIBTOOL_WIN32_DLL If this token and
others are legitimate, please use m4_pattern_allow. See the Autoconf
documentation.
configure.ac:58: error: possibly undefined macro: AC_PROG_LIBTOOL
configure:5242: error: possibly undefined macro: AC_DISABLE_STATIC
configure:5246: error: possibly undefined macro: AC_ENABLE_STATIC
autoreconf: /opt/lo/bin/autoconf failed with exit status: 1
autogen.sh: error: autoreconf exited with status 0
And I can't have it working.
Please help
Many Thanks
This happened to me when installing a different package. The fix was to install libtool with:
$ sudo apt-get install libtool
then run:
$ ./auto_gen.sh
then you can proceed as normal:
$ ./configure && make
$ sudo make install

Resources