help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] It is a competition between different installed versions


From: Sergey Shcherbina
Subject: Re: [Help-gsl] It is a competition between different installed versions of GSL
Date: Wed, 25 Jul 2018 14:09:17 +0300

Hi!

My short answers on your questions. 

Q: Have you clean up the old version ?

A: No,  I haven't cleaned up old version. 

Q: Is a system wide or a HOME installation ?

A: It is a system wide. I found the libs of new GSL version here :

/usr/local/lib
libgsl.a  libgsl.la  libgsl.so  libgsl.so.23  libgsl.so.23.1.0  libgslcblas.a  
libgslcblas.la  libgslcblas.so  libgslcblas.so.0  libgslcblas.so.0.0.0  
pkgconfig

All  new files with extention *.h are here  - /usr/local/include/gsl
 
A: But old version is saved too. 

You are fully right - it is a competition between different installed versions 
of GSL. 

How abput to use old or new versions if to change the the paths for include 
files in different gcc ?

Instead 

#include <stdio.h>
#include <stdlib.h>
#include <gsl/gsl_filter.h>

to use next variants:

#include </usr/local/include/gsl/gsl_filter.h>

or and to add a new PATH for gcc:

usr/bin/gcc -Wall `pkg-config --cflags --libs plplot` -I/usr/local/include -c 
$1 

/usr/bin/gcc -L/usr/lib -L/usr/local/lib ./$FirstOfile `pkg-config --cflags 
--libs plplot` -lgsl -lgslcblas -lm $(mysql_config --libs) -o ./$HeadOfInpFile


Thank you!

Serge.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]