Installing python with FFmpeg NumPy SciPy Matplotlib Pillow in jail

Status
Not open for further replies.

n3mmr

Explorer
Joined
Jan 7, 2015
Messages
82
This has me utterly confused, not being very used to python.

I wasn't planning on learning python for real, just use a python package (PyMasVis, recommended!!!) that analyses audio files for forensic evidence of horrible deeds done while mastering CDs and other phonograms.

Is there a cookbook recipe for dummies that would install python, FFmpeg, NumPy, SciPy, Matplotlib, Pillow and make ATLAS/BLAS/LAPACK and GNU Fortran compiler (gfortran) available to PyMasVis??
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
Doubtful--that's a highly specific combination of packages to expect to have a how-to already written for. You'd start with creating a jail, which is (more or less) a stock FreeBSD 9.3 installation. From there, any documentation you find on installing those packages under FreeBSD will likely work. If you don't find documentation on installing under FreeBSD, docs on installing under Linux will likely be helpful as well.
 

n3mmr

Explorer
Joined
Jan 7, 2015
Messages
82
I should have been clearer!

Using FreeBSD ports is not a mystery to me, I have successfully installed various FreeBSD packages in jails, using pkg install.
E g I run minimserver (the best UPnP server around, for classical music) in a jail with java (openjdk8) and several other supporting packages.
I can't say I'm well versed in using FreeBSD ports and packages, but I have managed a few.

What I have already done since writing the TS, with the problem at hand, is
Create new jail
Upgrade the pkg stuff, and then python2.7 is installed, and I do
pkg install gcc (and ffmpeg)
and then

pip install numpy ( SciPy, matplotlib and so on... )

and all those last bits fail.
e g for numpy I get
"
Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-XmAqnv/numpy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4QBhkH-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-XmAqnv/numpy/
"
So finding and installing freebsd software is not what I'm missing, it's getting python to install SciPy and relatives..

So, I still wonder, has anybody else tried installing the python packages like numpy, SciPy and family in a FreeBSD jail under FreeNAS and succeeded? And how did you do it? What am I missing here??
 
D

dlavigne

Guest
Don't use pip unless there isn't a FreeBSD port. For example, pkg install py27-numpy should work.
 
Status
Not open for further replies.
Top