Can't get luarocks to install lua-cjson; Failed compiling module cjson.dll - lua

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

Related

stagehand command not found when trying to create new application

I just installed stagehand on my mac and the install went off without a hitch, but when I try using it to spawn a new dart application I get this error -bash: stagehand: command not found. Any ideas?
I've looked at my machine, and stagehand is in ~/.pub-cache/bin which I think I had to add to my .profile manually:
export PATH=$PATH:~/.pub-cache/bin
(edit: I've just found the confirming information tucked away in the pub pages: https://www.dartlang.org/tools/pub/cmd/pub-global#running-a-script-from-your-path)
I'm on mac too. I did this:
brew tap dart-lang/dart
brew install dart
stagehand
zsh: command not found: stagehand
And then this command fixed it:
pub global activate stagehand
Now it works:
stagehand
Welcome to Stagehand!
I came across same issue on my windows pc. I had to check flutter installation directory and add following .pub-cache\bin directory to Windows path environment variable.
D:\flutter\.pub-cache\bin
I think this might be helpful to any Windows user.
On MacOS run this command: export PATH="$PATH":"$HOME/.pub-cache/bin"
I installed it, but still gave me error not found, but I noticed warning in following message after running the command:
Package stagehand is currently active at version 3.3.11.
Resolving dependencies...
The package stagehand is already activated at newest available version.
To recompile executables, first run `global decativate stagehand`.
Installed executable stagehand.
Warning: Pub installs executables into C:\Users\Nijat\AppData\Local\Pub\Cache\bin, which is not on your path.
You can fix that by adding that directory to your system's "Path" environment variable.
A web search for "configure windows path" will show you how.
Activated stagehand 3.3.11.
The problem is this line:
Warning: Pub installs executables into C:\Users\Nijat\AppData\Local\Pub\Cache\bin, which is not on your path.
Thus, you also need to add that to your environment variables. This solved my problem and now I can run stagehand.

'pkg-config' is not recognized as an internal or external command when installing package

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

Installing Google's ios-webkit-debug-proxy

I'm attempting to get google's ios webkit debug proxy working on my laptop, running ubuntu 15.04.
https://github.com/google/ios-webkit-debug-proxy
I've followed their installation instructions as best I could. However, I'm new to both web development and linux and am having trouble at the step where I run ./autogen.sh.
It runs its checks for a while, but then I receive the following error from the terminal:
checking for libimobiledevice... no
configure: error: Package requirements (libimobiledevice-1.0 >= 1.2.0) were not met:
Requested 'libimobiledevice-1.0 >= 1.2.0' but version of libimobiledevice is 1.1.6
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libimobiledevice_CFLAGS
and libimobiledevice_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
I've tried my luck with troubleshooting this on my own but can't figure it out.
Anyone out there familiar with this error and what it wants me to do? Is my file-path messed up or do I need a different version of libimobiledevice (which I believe I have the most updated one)?
As the error says, you need libimobiledevice 1.2 or higher. Compiling it from source is a solution:
Download libimobiledevice 1.2: http://www.libimobiledevice.org/downloads/libimobiledevice-1.2.0.tar.bz2
Extract: tar xf libimobiledevice-1.2.0.tar.bz2
cd libimobiledevice-1.2.0
./configure
make
sudo make install
You should now be able to successfully build ios-webkit-debug-proxy.
You may need to run sudo ldconfig afterwards to update the library cache.

Installing webkit for Capybara

I'm trying to install webkit for Capybara, using the information provided here, but I'm getting an error.
Following the instructions I have tried to change the qmake.conf file in the Qt installation directory but I couldn't find the QMAKE_IDC parameter and I don't know where the following values should be placed:
QMAKE_RCC = $$[QT_INSTALL_BINS]$${DIR_SEPARATOR}rcc$${EXE_SUFFIX}
QMAKE_LFLAGS = -static-libgcc -static-libstdc++
The following error is what I got:
C:\Users\Deepzster\Desktop\app\app>gem install capybara-webkit
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
C:/RailsInstaller/Ruby2.0.0/bin/ruby.exe -r ./siteconf20141118-9536-wfpmna.rb extconf.rb
Command 'qmake -spec win32-g++ ' not available
Makefile not found
I had the same problem. I had installed the latest version of Qt, which is version 5.3. I looked up the instructions on https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit, and one of the instructions is to modify the qmake.conf file, and the edits are to be made after "the line beginning with QMAKE_IDC". However, this line wasn't available in my qmake.conf file.
Therefore, I installed the version stated in the instructions, which is version 4.8.5. Here's the link - http://download.qt-project.org/archive/qt/4.8/4.8.5/. I downloaded qt-win-opensource-4.8.5-mingw.exe (I'm on a Windows 7 64-bit machine).
The qmake.conf file in this version does have the line beginning with QMAKE_IDC, so I could edit it as required. I then followed the rest of the instructions up to step 10 on the link (I also tried step 11, but I got a 'make failed' error). I then went to the directory containing my Gemfile and entered
gem install capybara-webkit
and the installation was successful.
Make sure your qmake is added in system path, otherwise it will fail to install.
There is no qmake utility on your workstation, as indicated by this message:
Command 'qmake -spec win32-g++ ' not available
I may suggest you to install QT for Windows. If this already done here suggested readings.

pod2man not found while installing Wireshark

I was trying to install WireShark 1.10.5 in linux.I was following the instructions provided with the software. Now,I am having problems while installing. It says pod2man cannot be found. How can i fix this?
checking for pod2man... no
configure: error: I couldn't find pod2man; make sure it's installed and in your path
try
apt-get install perl-modules
According to FOSSology bug 5619:
the pod2man utility which is used by the build process has been moved to a different package in Fedora 19 called perl-podlators
In previous versions it was in the package perl
so it appears you need to install the package "perl-podlators" to get pod2man.

Resources