I have build a website with Erlang and Cowboy with ErlyDTL on a Linux OS.
Now I want that my website can run on Windows and want to use the Erlang.mk with Relx build tool.
When I give the make command it gives me the error:
Unable to detect platform. Please open a ticket with the output of
uname -a.
uname -a output:
MINGW32_NT-6.2 LENOVO-... 2012-11-21 22:34 i686 Msys
How can I fix this problem in a easy way with explanation because I don't know much of makefiles ;).
Specs:
I have Windows 8.1 64 bit OS.
My Erlang.mk is version 1.2.0-634-g2f69190.
I installed MinGW with msys so I can run make and make distclean.
I have the following extra packages installed during this intallation:
mingw-developer-toolkit
mingw32-base
mingw32-gcc-g++
msys-base
So the PATH to MinGW is c:\MinGW.
With CMD I started C:\MinGW\msys\1.0\msys.bat
Then with the bash shell I ran de postinstall script pi.sh. This gave me no errors.
Then I have installed some extra packages for MinGW with success:
mingw-get install msys-rxvt
mingw-get install msys-unzip
mingw-get install msys-zip
mingw-get install msys-wget
I have red https://github.com/ninenines/erlang.mk/issues/294 but I couldn't understand what I have to do because the lack of explanation.
So is there a solution? If yes what is it and please give some explanation with it so I can fix my problem and understand what I'm doing.
Thanks in advance
Related
I have to start learning OCaml language.
In order to practice it at home we have to install some devices following the tutorial made by our University. Since we use Debian at school, it's a bit different when I have to use windows at home and here I come: I don't manage to run the tools properly.
We have to install OCaml via the official site. After doing it, I run "Cygwin64 Terminal" and had to type these commands:
$ opam update
$ opam install utop merlin ocp-indent
It has been done successfully. However when I try to run utop by its command I get this message:
"utop.exe: GetConsoleScreenBufferInfo: Bad file descriptor"
Where did I fail? What do I have to do?
I have the same error after installing ocaml for windows from http://fdopen.github.io/opam-repository-mingw/installation/ (graphic installer, 64 bits)
BUT the error happened ONLY after running opam install utop
Precisely, after running the graphic installer alone, I can launch ocaml (not utop) without error, either from a cygwin terminal or a windows shell (cmd.exe).
If I run opam install utop, I can no longer launch ocaml (cannot exec, segmentation fault) nor utop (GetConsoleScreenBufferInfo: Bad file descriptor)
If I uninstall utop and its dependencies, keeping only the base modules installed by the graphic installer, it is still impossible to launch ocaml.
Only solution found till now : completely remove ocaml and reinstall it ... but there's certainly a better way !
OK, so this is my first SO question so I'm gonna try my best to lay this out.
I have a Windows 10 laptop on which I am trying to install gcc. I have in the past tried alternatives such as netbeans, cygwin and various emulators and virtual machines all to no avail.
What has been working so far is that I enabled the 'new' windows developer mode which allowed me to download a Linux bash shell from the windows store. It works for all the regular Linux commands, but doesn't have gcc installed.
When I type in gcc (or gcc --version) in the shell, it prints the following line:
The program 'gcc' is currently not installed. You can install it by typing:
sudo apt install gcc
Which I tried, it then ran through a bunch of installer stuff but consistently seemed to run into errors such as the following:
Err:7 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdpkg- >perl all 1.18.4ubuntu1.2
404 Not Found [IP: INSERT IP ADDRESS HERE ]
where the ip address is different on each error line.
It ultimately fails with the following line:
Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have tried but again I get the same kinds of errors as above.
I would really like to get gcc working in the Windows/Linux shell as it is working great for everything else, and I'm trying to keep the number of programs on my computer to a minimum.
Does anyone know why this isn't working, or how (if possible) I can make it work?
P.S I do need it to be gcc because of school reasons
For what it's worth: I landed on this SO topic after having a similar issue.
What fixed it for me was to run
sudo apt-get update
sudo apt-get upgrade
I guess the repo URLs were too old, even though my Ubuntu was in a recent version.
I just ran into the same thing attempting to install python-pip. According to this article, this happens when you have the Windows 10 Anniversary Update (older) instead of the Creators update (newer). The solution is to either uninstall and re-install Ubuntu, or upgrade it (from 14.04 to 16.04). I found the upgrade to be simple and painless:
sudo do-release-upgrade
To check what you have, before and after via:
lsb_release -a
I had the same problem. Pinging the IP resulted in no response and visiting the website returned a 404.
I found a ppa with most current GCC and registered the PPA and was able to successfully install GCC with it; ppa website. I used GCC to build some software I wanted that was not found with apt-get.
From their page:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
Try to run Ubuntu application in Windows with an option "Run as Administrator".
The git-crypt instructions exist for Linux and MacOS, but for Windows these seem to be omitted. How to install Git-crypt on Windows?
There are other approaches, but I like msys2:
Install msys2:
http://www.msys2.org/
Open a msys2 terminal. Then ...
Install g++ for windows, following the instructions here:
https://github.com/orlp/dev-on-windows/wiki/Installing-GCC--&-MSYS2
Be sure /mingw64/bin is in your path. (e.g. which g++)
git clone git#github.com:AGWA/git-crypt
cd git-crypt
make LDFLAGS="-static-libstdc++ -static -lcrypto -lws2_32"
I would not trust the Repository git crypt for Windows that was mentioned.
I finally just managed to build git-crypt myself. And the Difference of the Size between this two Binaries is huge.
My self compiled Version is something around 370 kb compared to the 5.7 Mb from the One on GitHub.
Thanks for the Answer
Thumbs Up
with msys2 you can:-
pacman -S git-crypt
to install without needing to build it.
Check out git crypt for Windows. Consider whether you trust unsigned files from the internet (keep in mind git crypt itself is unsigned and you likely haven't reviewed the source)
For Windows 10 there is an alternative that should make things a bit easier using WSL (Windows Subsystem for Linux). This will avoid the need to compile anything.
If you do not have WSL enabled see Microsoft docs guide. I would also recommend installing the latest LTS edition of Ubuntu from the Microsoft Store app (any edition of Ubuntu will do).
Install Git Crypt
Once you have a working copy of Ubuntu for WSL, open it and run the following commands.
sudo apt-get update
sudo apt-get install git-crypt gnupg
Use Git Crypt
Now all that you need to do is access your Windows files from within Ubuntu by looking in /mnt/. Then you can use git-crypt as normal from within WSL.
I have downloaded git-crypt.exe from here and placed it in the C:\Program Files\Git\cmd\git-crypt.exe ! This solved my issue !
As proposed by mikemaccana
IN WINDOWS
I have downloaded git-crypt.exe from here and placed it in the C:\Program Files\Git\cmd\git-crypt.exe ! This solved my issue !
Note: The git crypt repo now has windows binaries under releases
https://github.com/AGWA/git-crypt/releases/tag/0.7.0
I am following this :
Step 2: Installing Cygwin
Cygwin can be downloaded from http://www.cygwin.com
Run the setup file.
Install from internet. Specify C:\cygwin as the root directory.
In the Select Packages dialog box, select the packages required. gcc-core, gcc-g++, gdb, and make packages are most important. These are the C core, C++ core, the GNU Debugger and the GNU version of ‘make’ utility. These packages will be under the ‘Devel’ category.
Complete the installation.
Step 3: Testing Cygwin
To test whether Cygwin was installed properly, try the following by opening the bash shell:
cygcheck -c cygwin
gcc --version
g++ --version
make --version
gdb --version
If the version details are displayed for all these commands, the installation of Cygwin has been successful.
I got this from here
But the result I get is:
What is wrong or missing with my installation.
Follow up question:
I wanted to use the terminal window in netbeans that is why I installed this.
In this terminal widnow I also have problem. I cant type anything on it. Is this the reason for it?
Try to run /usr/bin/g++. If it is not found, then you don't have g++ installed (installation may have had problems).
You can follow the same procedure for the rest of your commands
If /usr/bin/g++ runs successfully, it means you don't have /usr/bin in your PATH (which is very unlikely). You can put that in your PATH in your startup file.
I'm using MSYS in windows 7 and now i need it to provide ssh server service. can openssh be installed in msys like it is in cygwin?
i can find ssh in /msys/bin, and it can be used as ssh client. but no server seems to be installed. how can i install one? i googled a lot but almost every theads leads to openssh in cygwin, that does not apply to my situation.
i compared cygwin and msys and decide to use msys. We need to run some applications both built and supposed to be ran in windows.
what i've tried:
mingw-get install mysys-openssh
test#WIN-L3L622JBT6G ~
$ mingw-get install msys-openssh
install: openssh-5.4p1-1-msys-1.0.13-bin.tar.lzm
installing openssh-5.4p1-1-msys-1.0.13-bin.tar.
install: openssh-5.4p1-1-msys-1.0.13-doc.tar.lzm
installing openssh-5.4p1-1-msys-1.0.13-doc.tar.
install: openssh-5.4p1-1-msys-1.0.13-lic.tar.lzm
installing openssh-5.4p1-1-msys-1.0.13-lic.tar.
test#WIN-L3L622JBT6G ~
$ openssh
sh: openssh: command not found
the package seems to be installed but i don't know how to find the service. do i need to link it or modify the profile?
The answer would be "NO".
Msys provide ssh client but not ssh server, as it's document indicates.
And Openssh cannot be installed on windows without cygwin. you can install a full cygwin and install openssh in cygwin. It's also feasible to only install partial cygwin.
Msys is outdated. Use Msys2, which does support sshd: https://www.booleanworld.com/get-unix-linux-environment-windows-msys2/