Why haxelib will not install flixel library - windows-10

Issue: I cannot install any libraries using Haxe. Purpose: I want to install HaxeFlixel.
(Note: I am a newbie when it comes to using the command prompt for installing files, and it was run as administrator).
I have installed haxe 4.0.2 (with neko), located in C:\HaxeToolkit (seems to be Haxe 3.4.0 instead).
> haxelib returns usage info options.
> haxelib install all returns,
No hxml files found in the current directory. Seems like I'm missing files.
> haxelib install flixel returns
Error: Failed with error: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed.
I also tried installing a different version of Haxe that is compatible with a specific version of Flixel. Unfortunately the same error appears and more.
downloaded Flixel 4.6.3 (It's haxelib.json file says "releasenote": "Compatibility with Haxe 4.0.0-rc.3").
uninstalled Haxe 4.0.2 and downloaded and installed Haxe 4.0.0-rc.3 (seems to be Haxe 3.4.0 instead, again)
placed Flixel folder in HaxeToolkit\haxe.
> haxelib install flixel returns
Error: haxelib Repository C:/WINDOWS/system32/flixel does not exist. Please run `haxelib setup` again.
Called from haxelib/client/Main.hx line 1149
Called from haxelib/client/Main.hx line 1143
Called from haxelib/client/Main.hx line 1672
Called from haxelib/client/Main.hx line 467
> haxelib setup returns
Please enter haxelib repository path with write access
> C:/WINDOWS/HaxeToolkit returns
haxelib repository is now C:\WINDOWS\HaxeToolkit
> haxelib install flixel returns
Error: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
Called from haxe/remoting/HttpConnection.hx line 63
Called from C:\projects\haxe\std/sys/Http.hx line 58
Called from C:\projects\haxe\std/sys/Http.hx line 245
Called from C:\projects\haxe\std/sys/Http.hx line 60
Called from haxe/remoting/HttpConnection.hx line 64
Called from haxelib/client/Main.hx line 51
Called from haxelib/client/Main.hx line 721
Called from haxelib/client/Main.hx line 470
Again flixel did not install.
Any help to clarify what might be going wrong is appreciated.

First off, Flixel is compatible with the latest stable Haxe release 4.0.5, so you shouldn't downgrade to an older version.
It sounds like you installed Haxe to C:/WINDOWS/HaxeToolkit? I'm not sure that's a good idea, since C:\WINDOWS is a system folder. Also, haxelib setup should probably not point to the HaxeToolkit folder directly - by defalt it uses a lib subfolder (C:\HaxeToolkit\haxe\lib\).
All that being said, to work around the haxelib install issues, you could download the libraries you need as .zip files from the Haxelib website, e.g. https://lib.haxe.org/p/flixel/ for Flixel:
You can then run haxelib install on the file (first switch to your Downloads folder with cd):
>haxelib install "flixel-4,6,3.zip"
Installing flixel...
Current version is now 4.6.3
Done
You would have to do this for all libraries that you need (openfl, lime, possibly flixel-addons, flixel-templates and flixel-tools).

Related

failed to compile testmain package - compile, no such file

I'm new to Go programming and trying to set up the BDD framework Godog. I have extracted the Linux binary from the Github releases page and placed it on my $PATH. When I run it, I get the following error:
Error: failed to compile testmain package: fork/exec /opt/hostedtoolcache/go/1.17.7/x64/pkg/tool/linux_amd64/compile: no such file or directory - output:
For some reason godog version does not show an actual version, which leads me to believe it's not installed correctly.
❯ godog version
Show current version
Additional system information:
❯ go version
go version go1.18.3 linux/amd64
I don't know if this is relevant, but I'm using asdf to manage my local go installation.

Cannot compile robotjs for electron on my mips platform Linux

I am trying to use robotjs in my electron on a mips based Ubuntu. Since electron has mips linux version only up to version 1.8.8 (after that, no support), so I download this 1.8.8 electron-mips version. Then, I need to install Node, by checking the node version inside electron 1.8.8, I found it is node8.2.1, so I download this version source code and compile it in my mips platform, seems OK, and node and npm can run successfully. After this, I install libxtst-dev libpng++-dev, and then download the source code from robotjs homepage and unzip it in my directory, and under this directory, "npm install nan".
Then, I follow the robotjs homepage and try to compile it for my platform with command like:
node-gyp rebuild --runtime=electron --target=1.8.8 --disturl=https://atom.io/download/atom-shell --abi=57
During compiling, it always reports error(robotjs.cc, line 159): no matching function for call to v8::String::Utf8Value bstr(...).
And the same error occurs for line 447 and 486.
I checked the line 159/447/486 in robotjs.cc, they are as follows:
159: v8::String::Utf8Value bstr(v8::Isolate::GetCurrent(), Nan::To<v8::String>(info[0]).ToLocalChecked());
447: v8::String::Utf8Value fstr(v8::Isolate::GetCurrent(), Nan::To<v8::String>(value).ToLocalChecked());
486: v8::String::Utf8Value kstr(v8::Isolate::GetCurrent(), Nan::To<v8::String>(info[0]).ToLocalChecked());*
Anyone knows what's wrong with this, how should I do? thanks a lot!!
The current version of robotjs will not support anything earlier than 10.16.0
You'll need to go back to this commit and (I may have went a couple of commits too far) to get this to work. https://github.com/octalmage/robotjs/commit/b26c7ee0e3dd05420370350e540c48ae9d38f06c

CFFI compiled libpango with dependencies? (thai/fribidi/datrie)

I'm trying to setup a precompiled package for aws lambda, which must contain all the required libraries inside it.
My dependencies are : pango and cairo
So, what I did was go to https://fedora.pkgs.org and download the 64 versions of those, but then when I first executed my code (WeasyPrint/cffi) it gave me the following :
OSError: cannot load library 'pango-1.0': libthai.so.1: cannot open
shared object file: No such file or directory. Additionally,
ctypes.util.find_library() did not manage to locate a library called
'pango-1.0'
So I just went the the same website mentioned above, downloaded libthai, and then it gave the same error for libfridi, and then for libdatrie.
I'm just afraid this will never stop, is there any compiled pango with all these dependencies?
Worth nothing that I have absolute no clue what I'm doing, just sorta trying to get this to work.

Error: Module version mismatch. Expected 47, got 48

I'm writing a Visual Studio Code extension which uses a native node.js module. When I try to debug this extension in vscode I get the error message from above, when loading the native module (when commenting out the require() call no error comes up). It tried quite a few steps to overcome + test this:
npm uninstall native-module followed by a npm install native-module --save-dev in my vscode extension folder, this compiled the native module completely and without problems.
Completely cleaned my node_modules folder in the extension and did again the npm install --save-dev.
Installed node.js again, both LTS and current. With LTS the error message changes to: expected 47, got 46.
Installed latest vscode (August recovery build)
Launched a node session in my vscode extension folder and loaded my native module. This works nicely.
Read the various questions and comments here on SO. They mostly recommend what I described above.
Still, I cannot get vscode to accept my native module. What can I do? From the above steps it appears as if vscode has been built with a node.js version between current and LTS. Can I force my native module somehow to use a specific version?
Btw. what do those numbers 48, 47, 46 etc. actually mean? The node.js version is of course in the typical form: major.minor.build and nothing of that matches the above version numbers.
Update:
ok, I found what those numbers mean: https://nodejs.org/en/download/releases/
Once you know what those numbers in the error message mean it's easy to solve the issue. Simply install the node.js version that is expected. In my case it's node.js 5.12.0.
Remove node_modules folder
Run npm update
Then;
Run npm install

Unable to install nodejs on my computer

I am using windows and when I took reference to download node js from here. When I write this line
C:> cinst nodejs.install -Version 0.6.10
in CMD it gives an error
C:>cinst nodejs.install -Version 0.6.10
'cinst' is not recognized as an internal or external command,
operable program or batch file.
I don't know how to install node js.I also have a question that if I install node js version say v0.10.26 will the programs made with previous versions(say 0.9) will work on 0.10
That error means that your cmd session can't find cinst. To use cinst, you have to install the package manager from http://chocolatey.org/
If you just want to get Node.js running though, there's a Windows installer at http://nodejs.org/download/ or you can just hit the big green Install button at http://nodejs.org/
Summarizing comments:
All of the versions are maintained and available under http://nodejs.org/dist/, 0.6.10 can be found at: http://nodejs.org/dist/v0.6.10/ and you can get the Windows installer by downloading the .msi file.
As for whether there might be breaking changes from version to version, most code moves forward just fine, but testing is always a good idea. Some packages will specify a specific version in their package.json file, but most will just request a version greater than a certain point in the engines element like:
{ "engines" : { "node" : ">=0.6.10" } }

Resources