-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to run this source file on Ubuntu18.04, getting an make error( fatal error: gnutls/gnutls.h: No such file or directory #include <gnutls/gnutls.h>) #225
Comments
Hello @shivagittool , It seems that you don't have GnuTLS installed, in your Ubuntu 18.04, you can run this command: $ sudo apt install libgnutls28-dev Alternatively, as mentionned in the Install documentation, you can disable GnuTLS if you don't need https or websocket support. $ make GNUTLSFLAG=1 |
Thank you for your support @babelouest
user@BLTSL03275:~/ulfius-master$ sudo apt install libgnutls28-dev
user@BLTSL03275:~/ulfius-master$ make GNUTLSFLAG=1 |
user@BLTSL03275:~/ulfius-master$ make |
After installing all the dependencies test.c is running.
|
As mentioned in the documentation, if you don't use a parameter So if you can't access your ulfius instance from a different network, the problem shouldn't come from your program, but from elsewhere. |
Thank you for your support @babelouest, |
1).I have downloaded this source code and try to build on Ubuntu 18.04, I'm facing an error ( ./include/ulfius.h:43:12: fatal error: gnutls/gnutls.h: No such file or directory #include <gnutls/gnutls.h>)
If I try to comment the particular line number and try to make, I'm getting some other header file issue.
2).kindly requesting you to provide us Ubuntu (18.04)installation steps.
user@BLTSL03275:~/ulfius-master$ make
cd ./src && make
make[1]: Entering directory '/home/user/ulfius-master/src'
Config file ../include/ulfius-cfg.h generated
JANSSON SUPPORT ENABLED
CURL SUPPORT ENABLED
GNUTLS SUPPORT ENABLED
WEBSOCKET SUPPORT DISABLED
YDER SUPPORT ENABLED
FREERTOS SUPPORT DISABLED
LWIP SUPPORT DISABLED
gcc -c -pedantic -std=gnu99 -fPIC -Wall -Werror -Wextra -D_REENTRANT -I../include -O3 ulfius.c
In file included from ../include/u_private.h:46:0,
from ulfius.c:25:
../include/ulfius.h:43:12: fatal error: gnutls/gnutls.h: No such file or directory
#include <gnutls/gnutls.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:183: recipe for target 'ulfius.o' failed
make[1]: *** [ulfius.o] Error 1
make[1]: Leaving directory '/home/user/ulfius-master/src'
Makefile:30: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: