Compiling Tilde text editor on MacOS - 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.

Related

Cannot link gmp: library not found for -lgmp

I'm trying to install fastecdsa on macOS BigSur (M1 chip) by running
(venv) $ pip3 install fastecdsa
and even though I previously installed gmp:
$ brew install gmp
it cant find the lib, no matter what I do
src/curve.h:4:10: fatal error: 'gmp.h' file not found
#include "gmp.h"
Although the error changed when I created a symlink
ln -s /opt/homebrew/include/gmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
and now I get:
ld: library not found for -lgmp
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command '/usr/bin/gcc' failed with exit code 1
I also tried:
passing the path via env CFLAGS, LDFLAGS and both via global env export (export CFLAGS=...)
LDFLAGS=-L/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib pip3 install fastecdsa
CFLAGS=-I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include pip3 install fastecdsa
xcode-select --install
endlessly brew uninstall gmp and brew install gmp, even brew reinstall gmp and brew unlink gmp
installing rosetta2
turning it off and on again
I can't put my finger on it :(
You may have resolved this by now, but just to say that I ran into something similar, and the solution for me was to tell ld to look in the homebrew library path. Run this/add it to ~/.profile:
export LIBRARY_PATH=$LIBRARY_PATH:/opt/homebrew/lib
export INCLUDE_PATH=$INCLUDE_PATH:/opt/homebrew/include
(I didn't need INCLUDE_PATH in my case, but it looks like you might!)
After that, perhaps your python commands will start working!
enter image description here
use the setup.py to install and modify the setup.py as the image

Errors when I try command "make" or "Makefile" in trec_eval with Ubuntu in Windows 10

When I write command "make" or "Makefile" in trec_eval v 8.1 on Ubuntu Windows 10 I get this error:
make: gcc: Command not found
Makefile:33: recipe for target 'trec_eval' failed
make: *** [trec_eval] Error 127.
I tried to do this with trec eval 9, but I got this error: segmentation fault (core dumped) .
You got a gcc: Command not found because gcc is not currently installed in Ubuntu, so install it with the following commands:
sudo apt update
sudo apt install make gcc
This installs the default version of gcc. To install a newer version of gcc run sudo apt install gcc-8 instead.

How do you compile Mesos on OS X Yosemite

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

OS X Mountain Lion: gcc-4.2 No such file or directory

Tried to install a gem on Mountain Lion and make couldn't find gcc-4.2:
kamil$ gem install posix-spawn -v '0.3.6'
Building native extensions. This could take a while...
ERROR: Error installing posix-spawn:
ERROR: Failed to build gem native extension.
/Users/kamil/.rbenv/versions/1.9.3-p0/bin/ruby extconf.rb
creating Makefile
make
compiling posix-spawn.c
make: gcc-4.2: No such file or directory
make: *** [posix-spawn.o] Error 1
If you have Xcode installed, gcc should be available. Check where it is with:
kamil$ which gcc
/usr/bin/gcc
Then make a user-land symbolic link from gcc-4.2 to plain gcc:
kamil$ sudo ln -s ~/bin/gcc /usr/bin/gcc-4.2
(Ensure the user-land bind folder is in your path via export PATH=...:$HOME/bin in your .bash_profile or .zshrc.)
Gem installed fine afterwards.
Install simply apple-gcc42 with brew. It generate gcc-4.2 .
brew install apple-gcc42
So we do not need symlinks, which apple update may remove.
Homebrew
As #Artur Bodera mentioned modern OSX will refuse to let you create the symlink in the systems /bin folder.
To avoid this simply create the symlink to your users bin folder
ln -s ~/bin/gcc /usr/bin/gcc-4.2
Don't forget to add the bin folder to your .zshrc or .bash_profile - e.g.
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:$HOME/bin
I had a similar issue while installing a python pip package (building a wheel failed). I got the similar message:
unable to execute '/usr/bin/gcc-4.2': No such file or directory
error: command '/usr/bin/gcc-4.2' failed with exit status 1
Linking /usr/bin/gcc-4.2 to /usr/bin/gcc was not possible due to Apples System Integrity Protection (SIP), and linking it to /usr/local/bin/gcc-4.2 was not picked up by the wheel building process; it was still trying to use /usr/bin/gcc-4.2.
I was finally able to solve this by setting the CC variable in the terminal:
CC=/usr/bin/gcc
# Install your packages
pip install -r requirements.txt
PS : note that disabling SIP doesn't work, even with SIP disabled I wasn't able to create the /usr/bin/gcc-4.2 link.

brew and jhbuild error

I'm using Mac OS X 10.7
At first, I used jhbuild to install some libs.It install libs in "/Users/dinosaur/gtk/inst/lib/" I think it not good.
so I remove directory.
Home Brew is very good.so I want to install gegl with brew. So I input "brew install gegl" in terminal.But get a error:
grep: /Users/dinosaur/gtk/inst/lib/libiconv.la: No such file or directory
sed: /Users/dinosaur/gtk/inst/lib/libiconv.la: No such file or directory
libtool: link: `/Users/dinosaur/gtk/inst/lib/libiconv.la' is not a valid libtool archive
make[2]: *** [text.la] Error 1
make[2]: *** Waiting for unfinished jobs....
It seems brew look for libs at jhbuild build path. But I'v removed it.
How can I clean the jhbuild setting, Or another way to build gegl with brew.
sudo brew install libiconv
sudo brew link libiconv
That should do the trick.

Resources