Compilation gnuplot gsl编译链接

Compilation gnuplot gsl编译链接,compilation,gsl,Compilation,Gsl,我想使用gsl库。 编译.c代码时,出现以下错误: (base) alexandre@alexandre-Latitude-E7270:~/gsl-2.6$ qcc -O2 -Wall gsl.c -o gnu -lm gsl.c:2:10: fatal error: gsl/gsl_math.h: No files or folders of this type #include <gsl/gsl_math.h> ^~~~~~~~~~~~~~~~ 我还需要做什么? 谢

我想使用gsl库。 编译.c代码时,出现以下错误:

(base) alexandre@alexandre-Latitude-E7270:~/gsl-2.6$ qcc -O2 -Wall gsl.c -o gnu -lm
gsl.c:2:10: fatal error: gsl/gsl_math.h: No files or folders of this type
#include <gsl/gsl_math.h>
      ^~~~~~~~~~~~~~~~
我还需要做什么? 谢谢

对不起,伙计们, 我犯了这个错误,因为我没有安装它:

sudo apt-get install libgsl0-dev
现在它起作用了

sudo apt-get install libgsl0-dev