error when installing package tables for python
Question: This is the problem when I try to build package tables-3.1.1 for python:

    
    
    sudo python setup.py build_ext --inplace
    dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
    * Using Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
    * Found numpy 1.6.1 package installed.
    * Found numexpr 2.4 package installed.
    * Found Cython 0.20.2 package installed.
    * Found HDF5 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
    * Found LZO 2 headers at ``/usr/local/include``, library at ``/usr/local/lib``.
    * Skipping detection of LZO 1 since LZO 2 has already been found.
    * Found bzip2 headers at ``/usr/local/include``, library at ``/usr/lib``.
    /tmp/blosc_list_compressors0xPbk3.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    main (int argc, char **argv) {
    ^~~~
    /tmp/blosc_list_compressors0xPbk3.c:2:5: warning: implicit declaration of function 'blosc_list_compressors' is invalid in C99 [-Wimplicit-function-declaration]
        blosc_list_compressors();
        ^
    2 warnings generated.
    ld: library not found for -lblosc
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: library not found for -lblosc
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    * Could not find blosc headers and library; using internal sources.
    Setting compiler flag '-msse2'
    running build_ext
    

I understand that it couldn't find blosc library. I tried to import blosc in
python:

    
    
    >>> import blosc
    >>> help(blosc)
    
            ------
            TypeError
                If packed_array is not of type bytes or string.
    
            Examples
            --------
    
            >>> import numpy
            >>> a = numpy.arange(1e6)
            >>> parray = blosc.pack_array(a)
            >>> len(parray) < a.size*a.itemsize
            True
            >>> a2 = blosc.unpack_array(parray)
            >>> numpy.alltrue(a == a2)
            True
    
    DATA
        __all__ = ['compress', 'compress_ptr', 'decompress', 'decompress_ptr',...
        __version__ = '1.2.4'
    
    VERSION
        1.2.4
    

So, python can find blosc package. Can someone help me to solve the problem in
installing package tables, please? Thanks ahead.


Answer: You need to install the blosc development libraries. If you're running either
CentOS or Fedora, try `sudo yum install blosc-devel`. For Ubuntu, I could not
find a similar package, which means you will likely have to build from source.
[There are tarballs here](https://github.com/Blosc/c-blosc/releases), and you
will have to follow [their build
instructions](https://github.com/Blosc/c-blosc/blob/master/README.rst).

