-
Notifications
You must be signed in to change notification settings - Fork 39
Installation
Use either
sudo apt-get install git
or
sudo yum install git
I highly recommend MacPorts. Download the binary installer appropriate for the version of Mac OS X you are running and following their installation instructions. Usually that consists of saving a .dmg file, opening it, and opening up the .pkg file which kicks of the standard installer tool.
As of 5/9/2009, flashbake is available as a package within MacPorts maintained by ram.
sudo port install flashbake
Installing via MacPorts also takes care of all of the dependencies, you only need to install the flashbake port itself; that’s it!
If the install breaks consistent with errors like the following:
> your-mac:~ you$ sudo port install flashbake > ---> Computing dependencies for flashbake > ---> Building py26-enum > Error: Target org.macports.build returned: shell command " cd > "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.m > ac ports.org_release_ports_python_py26-enum/work/enum-0.4.4" && > /opt/local/Library/Frameworks/Python.framework/Versions/2.6/bin/python2. > 6 setup.py --no-user-cfg build " returned error 1 Command output: > Traceback (most recent call last): > File "setup.py", line 17, in <module> > from setuptools import setup, find_packages > ImportError: No module named setuptools > > Error: The following dependencies failed to build: py26-enum > py26-feedparser py26-setuptools > Error: Status 1 encountered during processing.
then try manually updating the setuptools module.
your-mac:~ you$ sudo port install py26-setuptools ---> Computing dependencies for py26-setuptools ---> Fetching py26-setuptools ---> Attempting to fetch setuptools-0.6c9.tar.gz from http://distfiles.macports.org/python ---> Verifying checksum(s) for py26-setuptools ---> Extracting py26-setuptools ---> Configuring py26-setuptools ---> Building py26-setuptools ---> Staging py26-setuptools into destroot ---> Installing py26-setuptools @0.6c9_0 ---> Activating py26-setuptools @0.6c9_0 ---> Cleaning py26-setuptools
At this point, try to install flashbake again, it should complete.
If you’d like to install Flashbake manually, then you’ll first need to install Git and Python 3 if you don’t already have them. You can do this by installing Homebrew, a package manager that behaves similarly to tools like Apt and Yum on Linux. To install Homebrew follow the instructions on the project’s homepage.
Once Homebrew is ready installing Git is as simple as brew install git
.
Installing Python 3 is a little more involved. First install with
brew install python3
Next you have to install pip, which is like a package manager for Python itself. Do this with
brew postinstall python3
Then link the newly installed version of Python 3 with the
python3
command. Let’s say you just installed Python 3.9, then the commands would be
brew link [email protected]
As of version 0.22.2, flashbake uses the setuptools in its setup.py script so the normal installation should automatically take care of the modules on which flashbake now relies. The setuptools module itself still needs to be installed, as below, manually before installing flashbake itself.
On apt-get or yum systems, you can install Python’s setuptools module which comes with the package “python-setuptools”.
sudo apt-get install python-setuptools
or
sudo yum install python-setuptools
If you are using the Python 3-compatible version of flashbake (coming soon) then you need to install a different version of setuptools:
sudo apt-get install python3-setuptools
or
sudo yum install python3-setuptools
Homebrew installs setuptools as part of its Python 3 install, but you can upgrade with the following command:
sudo python3 -m pip install —upgrade setuptools`
At this writing, newer Macs may have a problem installing some of Flashbake’s dependencies automatically. The easier solution is just to install them before trying to install Flashbake. You can install the two problematic dependencies like so:
sudo python3 -m pip install enum34
sudo python3 -m pip install feedparser
The scripts themselves make use of Python’s nice installation capabilities. To install download the tarball from the Download page, explode it, and run
sudo python setup.py install
or for Python 3-compatible versions of flashbake:
sudo python3 setup.py install
in that exploded directory.
You can also download the sources, either from the Head or one of the tags, and run the above line in the source project. You can run flashbake from the source directory as “./bin/flashbake” but you must satisfy the external dependencies, first.
Configuration – How to configure a project directory