I cannot help with the other two packages, but you can install GSL in Ubuntu: sudo apt-get install libgsl0-dev gsl-bin Then you will be able to install the gsl package under R.