get source code http://trac.osgeo.org/gdal/wiki/DownloadSource let's use GDAL 1.10.1 for this example.
here's the page on BuildingOnUnix http://trac.osgeo.org/gdal/wiki/BuildingOnUnix
here's the page for MrSID / GDAL http://trac.osgeo.org/gdal/wiki/MrSID
get the DSDK from LizardTech https://www.lizardtech.com/developer/ - version I used was MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44
I made a folder /home/oeon/local/src
and put it there. I also extracted my GDAL src code there.
i made a folder /home/oeon/local/gdal1101
configure GDAL ./configure --prefix=/home/oeon/local/gdal1101 --with-mrsid=/home/oeon/local/src/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK
make sure you see MrSID support: yes
in the config list.
make -j8
make install
sudo ldconfig
export LD_LIBRARY_PATH=/home/oeon/local/src/MrSID_DSDK-8.5.0.3422-linux.x86-64.gcc44/Raster_DSDK/lib:$LD_LIBRARY_PATH
cd into /home/oeon/local/gdal1101/bin
test with ./gdalinfo --formats | grep MrSID