Saturday, October 29, 2016

macOS Sierra: Installing Brainfuck Interpretter

Command:

$ git clone https://github.com/fabianishere/brainfuck.git


Result:

Cloning into 'brainfuck'...
remote: Counting objects: 1275, done.
remote: Total 1275 (delta 0), reused 0 (delta 0), pack-reused 1275
Receiving objects: 100% (1275/1275), 640.72 KiB | 519.00 KiB/s, done.
Resolving deltas: 100% (574/574), done.


Command:

$ ls


Result:

CHANGELOG.markdown LICENSE examples man
CMakeLists.txt README.markdown include src


Command:

$ cmake -f CMakeLists.txt

-- The C compiler identification is AppleClang 8.0.0.8000042
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/USERNAME/brainfuck


Command:

$ make


Result:

Scanning dependencies of target libbrainfuck
[ 25%] Building C object CMakeFiles/libbrainfuck.dir/src/brainfuck.c.o
[ 50%] Linking C static library libbrainfuck.a
[ 50%] Built target libbrainfuck
Scanning dependencies of target brainfuck
[ 75%] Building C object CMakeFiles/brainfuck.dir/src/main.c.o
[100%] Linking C executable brainfuck
[100%] Built target brainfuck


Command:

$ ls


Result:

CHANGELOG.markdown CMakeLists.txt README.markdown examples man
CMakeCache.txt LICENSE brainfuck include src
CMakeFiles Makefile cmake_install.cmake libbrainfuck.a


Command:

$ ./brainfuck


Result:

brainfuck 2.6.6 (Oct 29 2016, 17:56:11)