# Build Open Babel

## Create Python Virtual Environment

If not, building process will find the Python intepretor by searching `python` and get Python 2.

```bash
# Create Python Virtual Environment
$ python3 -m venv .

# Activate it
$ source ./bin/activate
```

## Build Open Babel

Directory structure:

```bash
.
├── build
└── openbabel-3.1.1
```

Build:

```bash
$ cd build

$ cmake3 ../openbabel-3.1.1 \
  -DCMAKE_INSTALL_PREFIX=~/.openbabel \
  -DPYTHON_BINDINGS=ON
  
$ make
# Error 1: no more space.
# Error 2: CMakeFiles/plugin_forcefields.dir/forcefields/forcefieldgaff.cpp.o:: File unrecognizable: File truncated

$ make install
```