[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EVEmodel.c:8:26: fatal error: gsl/gsl_math.h: No such file or direct
From: |
Jerome BENOIT |
Subject: |
Re: EVEmodel.c:8:26: fatal error: gsl/gsl_math.h: No such file or directory |
Date: |
Fri, 21 Feb 2020 10:50:28 +0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
Hello Nick,
this looks as a building set up issue not as a GSL issue. See below.
On 21/02/2020 01:30, Macknight, Nicholas James wrote:
> Hello,
> I am on a MacBook air operating through a Linux based server.
>
> I am attempting to run:
>
> gcc EVEmodel.c -o EVEmodel -O3 probabilityfunctions.c treefunctions.c
> regimefunctions.c myio.c mystat.c bfgs.c -D GSL_RANGE_CHECK_OFF -lm -lgsl
> -lgslcblas
>
> For EVE phylogenetic ANOVA. I had installed gsl-2.6 and put it in the same
> working directory as the .c files in my code above. When I run the code I get
> the following error:
>
>
> EVEmodel.c:8:26: fatal error: gsl/gsl_math.h: No such file or directory
>
> #include <gsl/gsl_math.h>
>
> ^
>
> compilation terminated.
>
> probabilityfunctions.c:6:26: fatal error: gsl/gsl_math.h: No such file or
> directory
>
> #include <gsl/gsl_math.h>
>
> ^
>
> compilation terminated.
>
> In file included from treefunctions.c:11:0:
>
> myio.h:2:28: fatal error: gsl/gsl_matrix.h: No such file or directory
>
> #include <gsl/gsl_matrix.h>
>
> ^
>
> compilation terminated.
>
> regimefunctions.c:4:26: fatal error: gsl/gsl_math.h: No such file or directory
>
> #include <gsl/gsl_math.h>
>
> ^
>
> compilation terminated.
>
> myio.c:2:28: fatal error: gsl/gsl_matrix.h: No such file or directory
>
> #include <gsl/gsl_matrix.h>
>
> ^
>
> compilation terminated.
>
> In file included from mystat.c:8:0:
>
> myio.h:2:28: fatal error: gsl/gsl_matrix.h: No such file or directory
>
> #include <gsl/gsl_matrix.h>
>
> ^
>
> compilation terminated.
>
> I have specified the path so it is looking in the gsl folder,
it must look at the parent folder, not at gsl folder: <PARENT
FOLDER>/gsl/gsl_*.h
the .c scripts
do you mean C source ?
already contain "#include <gsl/gsl_matrix.h>". I am not sure what is causing
this fatal error.
the C compiler cannot reach the C header.
Any thoughts or suggestions is greatly appreciated.
>
> Thank you for your time,
Anyway, if your linux box is properly set up, it should be find.
You may try:
gcc -o myprog myprog.c $(pkg-config gsl --cflags --libs)
Is it wild Linux server maintained randomly by a bunch of motley people
or a sane Linux box running a well-known distribution (as Ubuntu, Debian, ...)
maintained by a guru ?
hth,
Jerome
>
>
> Nick MacKnight
>
> Ph.D. Candidate
>
> The University of Texas at Arlington
>