Building ceres-solver on Fedora 17

October 11, 2012
Tags: ,

Simple first step : yum install gflags-devel The Fedora rpm package for ‘glog’ is older than required (i.e. it is <3.1), so it has to be built manually. So, as a precursor to the main build, one requires : wget http://google-glog.googlecode.com/files/glog-0.3.2.tar.gz tar -xzf glog-0.3.2.tar.gz cd glog-0.3.2 ./configure –with-gflags=/usr/ make sudo make install # This puts [...]

0

nginx configuration for uwsgi for Flask

November 18, 2011

/etc/nginx/conf.d/site.conf : server {  server_name example.com www.example.com;  root home/example/flask/static;    location ~ ^/(img|js|css)/ {  # |pi||ext|theme   root                    /home/example/flask/static;   add_header              Cache-Control public;   #expires                 30d;   #access_log         [...]

0

Building uwsgi from src.rpm without Python 3

November 16, 2011

To build uwsgi on Fedora 12 (which has no easy-to-find python3 rpm), run through the rpmbuild process (shown in a previous post in more detail for nginx) and make the following changes : wget http://kad.fedorapeople.org/packages/uwsgi/uwsgi-0.9.9.2-2.fc15.src.rpm rpm -ivh uwsgi-0.9.9.2-2.fc15.src.rpm rpmbuild -bb  ~/rpmbuild/SPECS/uwsgi.spec yum install python-devel libuuid-devel jansson-devel libyaml-devel ruby-devel python3-devel python-greenlet-devel  lua-devel  ruby # NB: python3-devel [...]

0

Updating nginx (with uwsgi) for Fedora 12 from src.rpm

November 14, 2011

In order to get access to uwsgi (useful for deploying python flask projects, for instance), one needs a version of nginx > 0.8 or so. But Fedora 12 doesn’t have such a modern version : Here’s how to build it from a src.rpm from a more recent Fedora release. # First, make sure we have [...]

0

Yum stalling

January 7, 2007
Tags: ,

It appears that the RPM database needs rebuilding if a yum process is killedprematurely, since it probably had the RPM db open and now it’s in an inconsistentstate. The steps : Kill all yum and rpm processes. rm -f /var/lib/rpm/__db* rpm –rebuilddb (add -vv if you want to see what it’s doing) Retry yum update [...]

Comments Off