How can I upgrade alien extension on lua for windows? - lua

I have installed Lua for windows 5.1.4-40 and it comes with alien 0.4.1.
I want to upgrade alien to 0.5.0, and couldn't figure out a way to do it.
I have luarocks installed with lua for windows, and I have tried to use it.
luarocks.bat install alien
However, I got an error message saying:
*Error: Failed unpacking rockk file: C:\tmp\luarocks_....*

The reason I got the error was that I didn't run it as Administrator, although my account has admin permission.
To solve this problem, I ran cygwin as administrator, and luarocks worked perfectly.

Related

spyder showing missing dependencies

Just wondering if this is a spyder bug, or whether there was an update between yesterday and today? spyder was working fine for me yesterday. This error message showed up.
jedi=0.17.1: 0.18.0 (NOK)
parso=0.7.0: 0.8.2 (NOK)
Somewhat related, what do jedi and parso do, and what does "NOK" mean?
(Spyder maintainer here) My answers to your questions:
just wondering if this is a spyder bug, or that there was an update between yesterday and today?
This is not a bug. It means that you have the wrong versions of some of our dependencies (as the message clearly states).
spyder was working fine for me yesterday
You probably ran conda update --all, or installed another package with conda or pip, which updated Jedi and Parso as well.
To fix this problem, you need to reinstall those packages with the right versions. For that, please open the Anaconda Prompt or a system terminal (i.e. cmd.exe) and run one of the following commands:
conda install jedi=0.17 parso=0.7
if you're using Anaconda, or
pip install jedi==0.17.1 parso==0.7.0
if not.
somewhat related, what do jedi and parso do, and what does "NOK" mean?
Jedi provides code completion in the editor and Parso is used for code folding on it as well.
NOK means Not ok.

How to install luarocks for Windows 10

So I've been searching everywhere and I'm completely stuck right now. Initially I just installed the binaries which came with luarocks.exe and luarocks_admin.exe but with that there was no config file so when I go to install the luarocks-mysql module, luarocks was unable to find the lua library and said I needed to set the LUA_LIBDIR variable in the config. I can't make changes to the luarocks config though because it either doesn't exist or I can't find it.
After getting this problem I went back to install the luarocks all in one package but I'm unable to follow the instructions because I can't find the install.bat file that they were talking about. Sorry if this is a lot but I'm just running into a bunch of problems right now.
EDIT: Just use Ubuntu, it's 100 times easier.
I had similar problems. I didn't look for a solution and just installed wsl on windows 10.
https://learn.microsoft.com/en-us/windows/wsl/install
Then execute the commands in the console:
sudo apt install lua5.3 liblua5.3-0 liblua5.3-dev
sudo apt install luarocks

Can you have Luarocks and Luadist installed at the same time?

I have been trying to install Luadist, but I was always getting errors. I think the reason might be because I have Luarocks installed already and that maybe I can't have Luadist installed at the same time.
I've tried everything else, but nothing helps. I think that this might be the cause, but I'm not sure. This is for Windows 10 and I've used luaforwindows to install Lua on my PC.
Is such a thing possible? Can you have both installed at the same time?

How to install Lua Love using the luarocks manger?

I am a complete newb to lua, but so far I like it.
I want to install love because it provides a nice framework and want to explore its features. I can already run lua scripts (luarocks comes with lua5.1.) and I have the zerobrain IDE. I installed socket.rock by getting the .rock file and running:
luarocks install luasocket-2.0.2-3.win32-x86.rock
But I can't find a similar file for love. I found this website: luarocks-love, which tells me:
luarocks install --server=http://luarocks.org/m/love <name>
So I can run this, but I don't know what <name> means... I tried it without <name> and I get an error. Can someone explain what I am missing here?
Thanks!
You can't install Love via luarocks. Love isn't a library.
The installers for Windows are available here.
What you have there is just used for installing libraries using luarocks that depend upon Love. It is not the framework itself.

Installing the OpenCV prebuilt library on Ubuntu server 11.10

I am new to the Linux scene and I am trying to get OpenCV installed and running on our server as I need it to build and run a few applications on the system. I have followed the Ubuntu package Install directions, but I seem to have an issue when I get to the install command. I get the terminal saying that it is reading the package list and after a few seconds I get a message saying that opencv cannot be found.
Has anyone had any experiences installing this library and can anyone possibly help guide me on how to use this whole setup? If it's any help I get a 404 error when I try to access the PPA in the update. Did I add the repository incorrectly?
Any advice is greatly appreciated.
OpenCV 2.1 is quite old. Try setting up his new PPA for OpenCV 2.3.1. It has a Natty target.
Hope that's helpful!

Resources