Disclaimer: There is a similar question on here by a different user, but it was never answered. Maybe this time will be different.
I'm attempting to install Copas, but one of the dependencies is LuaSocket. However, when I try to install LuaSocket, I get the following error:
src/wsocket.c: In function 'socket_gaistrerror':
src/wsocket.c:417:14: error: 'ERROR_NOT_ENOUGH_MEMORY' undeclared (first use in this function)
case EAI_MEMORY: return "memory allocation failure";
^
src/wsocket.c:417:14: note: each undeclared identifier is reported only once for each function it appears in
Error: Build error: Failed compiling object src/wsocket.o
I've tried downloading the rockspec and installing it there, I've tried the luarocks site as well as the github site, and I've tried different versions. My Lua compiler is Lua for Windows and Lua version is 5.1. I'm using MinGW for the C compiler. All this is on a Windows 10 laptop.
It seems like it may depend on the version of mingw you are using; this discussion of the same error in curl may help with identifying the issue and the proposed resolution/workaround. From the discussion it looks like adding -DENABLE_INET_PTON=OFF or using MinGW64-w64 v7+ may resolve the issue.
Also, Lua for Windows should already include luasocket, so I'm not sure why it would need to be compiled.
Related
I am trying to install lua-cjson using luarocks. I have installed mingw32 as well as set a environment variable in system. I keep getting error: I've tried re-directing my lua folder to user public (as another post suggested), however that didn't help, only to get the same error.
I've even verified that MinGW is installed by using the --version command in CMD prompt, which works.
Error: Build error: Failed compiling module cjson.dll
I don't know what else to do as there are absolutely no posts on stackoverflow covering this issue.
lua_objlen was removed. If you want this module to be working try
luarocks install lua-cjson "CFLAGS=-DLUA_COMPAT_5_3"
Output
Reference
I tried to update my glib as part of flex, both installed using Homebrew on 10.14. However, when I config/make my flex project, I get:
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
I assume the problem is that last bit, so I did...
export GLIB_CONFIG=/usr/local/lib/glib-2.0/include
And get the same error. I also tried adding /glibconfig.h to the end, but that does the same.
Looking in config.log I see a different issue:
configure:1696:10: fatal error: 'glib.h' file not found
I assume the two are related of course, but I'm thinking the root issue is the later. Does anyone know where this file is and what envar it might be using to find it?
So I'm getting this error when attempting to install OpenCV on my computer.
'pkg-config' is not recognized as an internal or external command
I've been searching around for this pkg-config package and I can't seem to find a proper download source anywhere.
The only one I did find was pkg-config-lite. I tired to see if that one would work but no luck.
The original pkg-config release is available here:
http://www.freedesktop.org/wiki/Software/pkg-config
I try to improve an App using an old version of pjsip. Since in this version the loudspeaker won't work anymore, I wanted to update pjsip.
Since I found no tutorial how to simply update the pjsip you are using I tried to download and compile the newest version.
But the compiling allways stopps with this exception:
pjmedia-audiodev/errno.c23:13: fatal error: 'portaudio.h' file not found
What could cause this problem?
I was following this guide:
https://trac.pjsip.org/repos/wiki/Getting-Started/iPhone
What made me also a bit curious is that in the file "config_site.h" already were alot of defines. Do I still need them while the guid says it should have thoose two lines:
#define PJ_CONFIG_IPHONE 1
#include <pj/config_site_sample.h>
When I am ready with compiling, would I be able to simply overwrite the files the app I'm working on useses with the files I just compiled?
Thank you for any help.
Seems that the Portaudio is not installed on your system.
You can get it from Macports or Homebrew with the following commands:
sudo port install portaudio
or
sudo brew install portaudio
About your second question for the defines in the "config_site.h" file, it's depend of the application it self, usually the mentioned settings are enough but is also possible that for your case additional parameters are needed, like enabling video or additional codecs etc.
I'm trying to build Firefox from source and I'm getting hung up on some of the requirements.
I'm trying to build libIDL, which requires glib. I got glib built and installed to /usr/local, but when I try and configure libIDL, I get a failure at:
checking for LIBIDL... configure: error: Package requirements (glib-2.0 >= 2.4.0) were not met:
No package 'glib-2.0' found
I used the very latest version of glib that I can find, ftp://ftp.gtk.org/pub/glib/2.20/glib-2.20.3.tar.gz
However, I've also been searching around and am seeing references to libglib-2.0 such as at http://packages.debian.org/search?keywords=libglib2.0-dev
Are there 2 divergent branches of Glib, like a v1 and v2?
You need to install glib-devel in order to have the glib headers exist on your system. Without the headers, autoconf will mark the library as missing.
You installed glib from source which should have worked. The actual problem was most likely with the paths you chose to install into. The autoconf script may not be looking for glib where you installed it, or it may be looking into another directory first and finding an old version.