Windows Luarocks install permission error - windows

I have been trying for two weeks to install lua 5.1 and luarocks on windows. Please help.
What i have:
Downloaded MinGw
Installed Lua 5.1. I downloaded sources from official site and compiled with MinGw
Downloaded binary luarocks file.
Installed binary files in variable PATH
Windows terminal with admin privileges
If i tried to run next command
luarocks --lua-version=5.1 install luasql-mysql MYSQL_DIR="c:/Program Files/MySQL/MySQL Server 8.0"
I will get error
C:\Windows\system32>luarocks --lua-version=5.1 install luasql-mysql MYSQL_DIR="c:/Program Files/MySQL/MySQL Server 8.0"
Installing https://luarocks.org/luasql-mysql-2.6.0-1.rockspec
Cloning into 'luasql'...
remote: Enumerating objects: 149, done.
remote: Counting objects: 100% (149/149), done.
remote: Compressing objects: 100% (100/100), done.
Receiving objects: 88% (132/149)sed 71 (delta 35), pack-reused 0Receiving objects: 86% (129/149)
Receiving objects: 100% (149/149), 104.00 KiB | 918.00 KiB/s, done.
Resolving deltas: 100% (72/72), done.
luasql-mysql 2.6.0-1 depends on lua >= 5.1 (5.1-1 provided by VM)
Error: Failed setting permission exec for all
I tried to compile luarocks from source and also got access error. What am I doing wrong?

Possible answer found here: https://stackoverflow.com/a/38534015/3342050
"I was able to install it from source on github (keplerproject/luasql) by modifying the config file. Lua 5.2 was hard-coded in the config file, but I'm running 5.1."
"In the config file, replace LUA_SYS_VER ?= 5.2 with LUA_SYS_VER ?= 5.1"
https://github.com/keplerproject/luasql/blob/8c58fd6ee32faf750daf6e99af015a31402578d1/config#L7

Related

Middleman asks if I want to use compass when starting a new project

I'm on a Windows 10 machine. I have Ruby installed through git bash. I also have middleman installed (v4.0.0). When I do middleman init "name_of_project" it asks me if I want to use compass and I get stuck.
$ middleman init newproject
run git clone --depth 1 git://github.com/middleman/middleman-templates-default.git C:/Users/dedvv/AppData/Local/Temp/d20160130-11408-c7ch9s from "."
Cloning into 'C:/Users/dedvv/AppData/Local/Temp/d20160130-11408-c7ch9s'...
remote: Counting objects: 22, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 22 (delta 0), reused 14 (delta 0), pack-reused 0
Receiving objects: 100% (22/22), 6.07 KiB | 0 bytes/s, done.
Checking connectivity... done.
exist
create .gitignore
create Gemfile
create config.rb
create source/images/middleman-logo.svg
create source/index.html.erb
create source/javascripts/all.js
create source/layouts/layout.erb
create source/stylesheets/_normalize.scss
create source/stylesheets/site.css.scss
Do you want to use Compass?
I have no idea what to do here in order to move on. y/n yes/no + Enter do nothing. CtrlC just exits. I also did gem install compass to see if it would autoload it and not ask me anymore, but it didn't work.
This issue is only faced on Git Bash windows that uses mingw64, trying the same on Windows Command Prompt (cmd) works perfectly

can't access github via https after upgrade to Yosemite

I can't access GitHub via https after upgrade my Mac to Yosemite.
fatal: unable to access 'https://github.com/caskroom/homebrew-cask/': SSL: can't load CA certificate file
Actually,it's brew update,most of brew operations are via https when requesting github repo.
Using git version 2.1.2 (on Yosemite) I'm able to download the repo just fine:
git clone https://github.com/mitsuhiko/flask.git/
Cloning into 'flask'...
remote: Counting objects: 10113, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 10113 (delta 2), reused 5 (delta 1)
Receiving objects: 100% (10113/10113), 4.66 MiB | 1.52 MiB/s, done.
Resolving deltas: 100% (6112/6112), done.
Checking connectivity... done.
You can try switching to ssh:
git clone git#github.com:mitsuhiko/flask.git
With https, you need to have your CAs (Certificate Authorities) in order (as in this question).

Git (Windows) - cannot create file on clone. Works as Superuser

I'm using Windows 8, 64bit - I recently installed Git to use it on this computer. However, it is not possible to clone any repository. It exits with the message:
$ git clone ssh://me#some.address.com/some/git/repository.git
Cloning into 'repository'...
error: Unable to create c:/Users/Danyel/workspace/repository/.git/HEAD
When I open cmd as Administrator and try the same command, it succeeds (cmd as normal user fails just like with Git Bash):
C:\Users\Danyel\workspace>git clone ssh://me#some.address.com/some/git/repository.git
Cloning into 'repository'...
remote: Counting objects: 221, done.
remote: Compressing objects: 100% (195/195), done.
remote: Total 221 (delta 34), reused 167 (delta 15)
Receiving objects: 100% (221/221), 9.23 MiB | 1.38 MiB/s, done.
Resolving deltas: 100% (34/34), done.
Checking connectivity... done
I'm using this version of Git: Git-1.8.4-preview20130916
Any help or clues are welcome! I have checked for the permissions and have ownership in parent folders ("repository", ".git"). What else can it be??
Edit:
The GIT_TRACE option did not give any clue about it either:
$ GIT_TRACE=2 git clone ssh://me#some.address.com/some/git/repository.git
trace: built-in: git 'clone' 'ssh://me#some.address.com/some/git/repository.git'
Cloning into 'repository'...
error: Unable to create c:/Users/Danyel/Desktop/repository/.git/HEAD
As illustrated in this thread, that kind of error message only happens when one of the parent folders is a symlink.
Check if you can clone it in another path (C:\ or C:/Users/Danyel).
But I suspect that Desktop\workspace is a symlink, and as such, not very compatible with a cloned repo path (because that would un-symlink that path, which might not be compatible with other apps/process using that same path).
The only other instance of that issue is related to a path-length limit.

git flow installer fails to install shFlags on the Mac OS X 10.8.3

Tried this several times including nuking the previous download and manually getting the submodule. Does anyone have a workaround?
SilverFir-2:SRC mike$ sudo ./git-flow-installer
### gitflow no-make installer ###
Installing git-flow to /usr/local/bin
Cloning repo from GitHub to gitflow
Cloning into 'gitflow'...
remote: Counting objects: 1407, done.
remote: Compressing objects: 100% (602/602), done.
remote: Total 1407 (delta 893), reused 1285 (delta 790)
Receiving objects: 100% (1407/1407), 358.18 KiB | 121 KiB/s, done.
Resolving deltas: 100% (893/893), done.
Updating submodules
Submodule 'shFlags' (git://github.com/nvie/shFlags.git) registered for path 'shFlags'
Cloning into 'shFlags'...
fatal: unable to connect to github.com:
github.com[0: 204.232.175.90]: errno=Operation timed out
Clone of 'git://github.com/nvie/shFlags.git' into submodule path 'shFlags' failed
install: gitflow/git-flow -> /usr/local/bin/git-flow
install: gitflow/git-flow-init -> /usr/local/bin/git-flow-init
install: gitflow/git-flow-feature -> /usr/local/bin/git-flow-feature
install: gitflow/git-flow-hotfix -> /usr/local/bin/git-flow-hotfix
install: gitflow/git-flow-release -> /usr/local/bin/git-flow-release
install: gitflow/git-flow-support -> /usr/local/bin/git-flow-support
install: gitflow/git-flow-version -> /usr/local/bin/git-flow-version
install: gitflow/gitflow-common -> /usr/local/bin/gitflow-common
install: gitflow/gitflow-shFlags: No such file or directory
SilverFir-2:SRC mike$
It looks like it may just be a temporary connection issue (though it's unusual that you were able to manually get the submodule but the script couldn't do it). The make-less installer appeared to work fine on my Mac OS 10.8.3 system. The make-less installer isn't doing much, you can run the steps yourself to install it-
git clone https://github.com/nvie/gitflow.git
cd gitflow
git submodule init
git submodule update
sudo make install

When cloning git repo under Windows I get "error: unable to create file <file>... (Is a directory)"

Z:\>git clone git://github.com/kennethreitz/httpbin.git
Cloning into 'httpbin'...
remote: Counting objects: 1073, done.
remote: Compressing objects: 100% (401/401), done.
remote: Total 1073 (delta 672), reused 1045 (delta 651)
Receiving objects: 100% (1073/1073), 114.42 KiB | 128 KiB/s, done.
Resolving deltas: 100% (672/672), done.
error: unable to create file httpbin/templates/... (Is a directory)
git version 1.8.0.msysgit.0, Windows Vista SP2 x64
What's wrong?
I think the trouble is this file here in you repo: https://github.com/kennethreitz/httpbin/blob/master/httpbin/templates/...
... is not a valid filename under windows
In order to get the repo, clone without checking out files (with -n flag):
git clone -n git://repo
Then you could use a sparse-checkout to get all file but ..., or you could only git checkout file you actually need.

Resources