What operating systems are supported by Substrate? - substrate

I've completed the following tutorial on an Ubuntu server...
https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/setup
I then tried it on a Red Hat distro (CentOS (Red Hat 4.8.5-39)) but it failed to compile.
Prompted me to ask what OS's are supported by Substrate?
Thanks in advance :)

The Getting Started guide lists macOS (BSD), Ubuntu/Debiant, and Arch Linux as preferred distributions. It also says Windows is supported, though not preferred (due to Windows lacking a Bash-style shell by default).
That doesn't mean other distros won't work - if "it failed to compile" then your machine is missing some dependency. The platform is built using Rust (for the service) and JS+npm for the front-end GUI - so it follows that Substrate should run on any platform that Rust (and npm) will run on (i.e. every modern distro of Linux).

Related

Powershell script on mac error

Just downloaded powershell trying to run a script on Mac and received the following error. Would appreciate any help from anyone familiar for a non-windows user. :)
The script you are running is not compatible with MacOS. It is trying to pull in resources that are only on Windows.
For Information on the Meltdown/Spectre vulnerability on MacOS, see Apples post: About speculative execution vulnerabilities in ARM-based and Intel CPUs
The Step by Step instructions are here:
Supports Ubuntu 14.04, Ubuntu 16.04, Ubuntu 17.04, Debian 8, Debian 9, CentOS 7, Red Hat Enterprise Linux (RHEL) 7, OpenSUSE 42.2, Fedora 25, Fedora 26, Arch Linux, and macOS 10.12.
For Linux distributions that are not officially supported, you can try using the PowerShell AppImage. You can also try deploying PowerShell binaries directly using the Linux tar.gz archive, but you would need to set up the necessary dependencies based on the OS in separate steps.
All packages are available on our GitHub releases page. Once the package is installed, run pwsh from a terminal.
https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md#macos-1011
Is this and new install and was install successful?
How or what commands did you run to install it, meaning following the defined steps.
You do not say what you are doing that caused this error and or is this a script you wrote or downloaded and are trying to use.
Point of note PoSH Core does not have all the features of Windows PowerShell, at least not yet. So, you have to work in those confines.
If this is from the install, you'll have to remove and reinstall.

What is an "X11 platform" and can it run on windows?

I'm trying to get GtkPlug and GtkSocket to work on Windows 8, using the currently supported GTK3+ windows bundle.
I see in the documentation this note:
The GtkPlug and GtkSocket widgets are only available when GTK+ is
compiled for the X11 platform and GDK_WINDOWING_X11 is defined. They
can only be used on a GdkX11Display. To use GtkPlug and GtkSocket, you
need to include the gtk/gtkx.h header.
What is an X11 platform, and can it be run on windows?
X11 is the graphics platform used by Linux and other Unix-style OSes. It is available for Windows through the Cygwin package but binaries compiled under Cygwin will not run on Windows without Cygwin installed so you probably don't want to go down that path. The documentation is essentially saying "this feature is only available on Linux."

Installation script for multiple operating systems

I have to install a C compiler with cilkplus branch which is recently added to the GCC. Since it is recent so I ave to install it manually and there are no direct methods available to that. I plan to install it at custom location. I installed it on a redhat 6 and ubuntu 12.04 successfully but I found that the settings of environment variables are different on both operating systems ( not a surprise ).
For example to install the compiler on ubuntu 12.04 you would need C_INCLUDE_PATH=/usr/lib/x86_64-linux-gnu a directory which does not exist on redhat 6.
I plan to write a single script for installation of this compiler on many systems(different distributions of linux). How can I do it.
One way I can think of is to check which OS and version you are running and set environment variables accordingly but here also I do not know how to do it.
Any other suggestions are also valueable.
Thanks
I would use cmake for easy dependency checking and handling

Best Linux distro for cross-compiling to SUA

I'm very interested in using Linux / GCC for cross-compiling to Microsoft SUA (Subsystem for Unix Applications) format (I have SUA 6.1 as part of Windows 7, 64-bits). Using SUA to natively compile programs and their dependencies is a hassle given the general lacklustre support by MS, no real package manager, etc. What is the best way to do this using Linux? I am open to other approaches, but personally envision Linux as part of the solution. If there are better cross-compilers for the job I'd like to know- seems that I'd have to opt for an older distro (according to GNU webpage, SUA support ended with GCC 3.3)
Gentoo has a Prefix target for Interix. You can try this but I'm not sure if it's up-to-date. It is basically a Gentoo installation (with package manager) inside your Interix system.
The Prefix solution should be easier to maintain that cross-compiling.
You can use "mingw" as an alternative compiler for windows to compile Linux applications.

Qt - Cross-compiling on Windows for Linux

I fail to find any instructions on how to cross-compile a Qt app for linux on the windows platform. So could someone give me or link me to step-by-step instructions on how to do so.
Install distcc on your Linux machine. Choose one of the distcc compilers as the compiler Qt will use in the projects pane of Qt Creator. Setup the hosts file for distcc to point at your Windows machine and specify the number of jobs you want to send to it.
On the Windows machine, you have two options - get VirtualBox, and put the same Linux OS on that, or use Cygwin. With either of those options, you can install distcc and get it to listen for incoming tasks from your Linux machine.

Resources