"gsl / gsl_rng.h" not found "after updating OSX El Capitan

I just upgraded to the latest OSX, El Capitan, and I had problems compiling the program in C. It was compiled just before updating the OS. After that, I got a warning message for my LaTeX text editor, Latexian:

Latex message

But since I do not use preview or compilation inside the program and compile in the terminal with "latex file.tex", it works fine.

Now my problem is with my .c program, which includes one of the GSL libraries, here is my title:

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_rng.h>
#include <gsl/gsl_randist.h>

When compiling, I get the following:

performance.c:4:10: fatal error: 'gsl/gsl_rng.h' file not found
#include <gsl/gsl_rng.h>
          ^
1 error generated.

, - OSX - , - , ! , , .

EDIT:

,

El Capitan

+4
3

GCC , gsl. , . include gcc -I -L. GCC:

-I/usr/local/include -L/usr/local/lib
+3

gcc $(gsl-config --cflags) name_of_file.c $(gsl-config --libs) -o name_of_file

. Wiki

0

In my case, I just needed to install / update gsl

brew install gsl
0
source

Source: https://habr.com/ru/post/1614598/


All Articles