---
layout: post
title: Install Phylanx on Fedora
categories: blog
tags: [Videos]
author: diehlpk
---
## Install 

### Install system libs


{% highlight bash %}
sudo dnf install pybind11-devel
{% endhighlight %}

### Install blaze

{% highlight bash %}
cd /home/diehlpk/Compile
git clone https://bitbucket.org/blaze-lib/blaze.git
cd blaze
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/home/diehlpk/opt/blaze/
make install
{% endhighlight %}

### Install Phylanx

Note that you have to install [HPX](https://github.com/STEllAR-GROUP/hpx) with the tutorial [here](https://www.diehlpk.de/blog/hpx-fedora). It is important
that you add -DHPX_WITH_MALLOC=system to the cmake command.

{% highlight bash %}
git clone https://github.com/STEllAR-GROUP/phylanx.git
cd phylanx
mkdir build
cd build
cmake -DHPX_DIR=/home/diehlpk/git/hpx/build/lib/cmake/HPX/ -DCMAKE_BUILD_TYPE=RelWithDebInfo  -DHPX_IGNORE_COMPILER_COMPATIBILITY=ON -Dblaze_DIR=/home/diehlpk/opt/blaze/share/blaze/cmake/ -DCMAKE_INSTALL_PREFIX=/home/diehlpk/opt/python-base/ ..
make -j 20
make install
{% endhighlight %}

## Export Phylanx to the Python userbase

{% highlight bash %}
export PYTHONUSERBASE=/home/diehlpk/opt/python-base/
python example.py
{% endhighlight %}





Add blog post for Phylanx
Add blog post for Phylanx
