Installing Memgraph on Windows - graph-databases

I was wondering what would be the best way to install Memgraph on Windows? Docker seems to be an option, but is there a different/easier way?

I realized I can install it on Windows 10 using the Windows subsystem for Linux. I just need to set the subsystem first. After that just run the following command:
dpkg -i /path/to/memgraph_<version>.deb
Here I found a step-by-step tutorial.

Related

How do I install Pact onto Windows?

I was going through the beginner tutorial and came to the Atom SDK page. I have a windows system, so installing brew doesn't work, but the tutorial only gives a way for Linux systems or Mac OS systems to install Pact. Is there any way to install Pact onto windows?
There is no official support for Windows (to my knowledge), but there is a possible workaround that worked for me. The workaround involves Ubuntu and WSL(Windows Subsystem for Linux).
The first step is installing Ubuntu and WSL in your windows device. Those who have done this could move ahead to step two. I followed this Youtube video for setting up WSL
With WSL Terminal set up, go to the terminal home directory and download the compressed pact executable from the official pact releases Github, suiting your ubuntu version, using command line curl. An example command I used for Ubuntu 20.04 and Pact v4.3 is:
curl -LJO https://github.com/kadena-io/pact/releases/download/v4.3/pact-4.3-linux-20.04.zip
3.Install unzip on command line using:
sudo apt install unzip
Unzip the compressed executable to the same directory using the unzip command. ex:
unzip pact-4.3-linux-20.04.zip`
this will add a pact.exe file on that directory
Update the user permissions on the pact.exe file using chmod command to enable read and execute.
chmod u=rx ./pact
Add the directory with pact executable to terminal permanent search path. This is done by exporting a new path in the .bash_profile file. (Editing .bash_profile could be done through any command line text editor e.g. vim). I followed this tutorial to complete this step.
And that should allow you to start pact from a windows wsl terminal.

Error when trying to do (sudo apt install flex bison): The operation couldn’t be completed. Unable to locate a Java Runtime that supports apt [duplicate]

I was watching this, and, as you can see, the first command I am told to put in is:
sudo apt-get install python-setuptools
When I do this, it outputs:
sudo: apt-get: command not found
I have no idea why this is the case.
How can I resolve this so I am following the tutorial correctly?
Mac OS X doesn't have apt-get. There is a package manager called Homebrew that is used instead.
This command would be:
brew install python
Use Homebrew to install packages that you would otherwise use apt-get for.
The page I linked to has an up-to-date way of installing homebrew, but at present, you can install Homebrew as follows:
Type the following in your Mac OS X terminal:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
After that, usage of Homebrew is brew install <package>.
One of the prerequisites for Homebrew are the XCode command line tools.
Install XCode from the App Store.
Follow the directions in this Stack Overflow answer to install the XCode Command Line Tools.
Background
A package manager (like apt-get or brew) just gives your system an easy and automated way to install packages or libraries. Different systems use different programs. apt and its derivatives are used on Debian based linux systems. Red Hat-ish Linux systems use rpm (or at least they did many, many, years ago). yum is also a package manager for RedHat based systems.
Alpine based systems use apk.
Warning
As of 25 April 2016, homebrew opts the user in to sending analytics by default. This can be opted out of in two ways:
Setting an environment variable:
Open your favorite environment variable editor.
Set the following: HOMEBREW_NO_ANALYTICS=1 in whereever you keep your environment variables (typically something like ~/.bash_profile)
Close the file, and either restart the terminal or source ~/.bash_profile.
Running the following command:
brew analytics off
the analytics status can then be checked with the command:
brew analytics
As Homebrew is my favorite for macOS although it is possible to have apt-get on macOS using Fink.
MacPorts is another package manager for OS X:.
Installation instructions are at The MacPorts Project -- Download & Installation after which one issues sudo port install pythonXX, where XX is 27 or 35.
Conda can also be used as package manager. It can be installed from Anaconda.
Alternatively, a free minimal installer is Miniconda.
apt-get command is only available on Debian or Debian-based Linux distributions (such as Ubuntu, Linux Mint, Kali). It is not accessible on macOS. Alternatively, you can use package managers like Homebrew, MacPorts, and Nix. You can find equivalent commands for each as follows
brew install package_name
sudo port install package_name
nix-env -i package_name
Before installing above package managers, you need to install XCode first. Follow the operation instructions from this guide How to Fix "sudo apt-get command not found" Error on Mac Terminal.
Alternatively You can use the brew or curl command for installing things, wherever apt-get is mentioned with a URL...
For example,
curl -O http://www.magentocommerce.com/downloads/assets/1.8.1.0/magento-1.8.1.0.tar.gz

How to correctly run Cuda toolkit in Ubuntu in the WSL (eventually to be used for YOLO)?

I followed the tutorial here from the Medium: https://medium.com/#GuruAtWork/setup-fastai-ubuntu-on-windows-10-44ca50b13a9
I was following it well until a MinGW was used for command lines. I am not sure how they went about doing this as the only way I could get nvcc to work is with sudo apt install nvidia-cuda-toolkit. However, this does not seem to complete the same thing as their tool kit is installed as if the exe was just run with Windows. However, that, of course, doesn't work with the Ubuntu. Let me know what you think, thank you.
AFAIK it's just not possible right now to do so from WSL. The link from Medium only sets it up for the Git bash prompt, which is not the same as WSL.

How to install openmpi from Macports on Sierra and/or check if openmpi is already installed

I am trying to install openmpi from Macports on Sierra 10.12.5. It seems that it is a straight forward command:
sudo port install openmpi
When I do this, I get the error:
sudo: port: command not found
I gathered from similar threads that this may be due to openmpi already being installed. How can I check if it is installed, and if so, uninstall it so that I can reinstall it using Macports with the above command? Any thoughts would be great. Thanks!
By default, the port command is installed at /opt/local/bin/port. The installer normally modifies your PATH environment variable to include '/opt/local/bin' so that you can launch stuff installed by MacPorts just by entering the name of the command. I think you should re-do the MacPorts installation. Follow:
https://www.macports.org/install.php
You almost certainly want to use the macOS package installer. You may have to restart Terminal for the new PATH to take effect.

Enabling dtrace on Apache on FreeBSD

HI i am using freeBSD as my operating system.I have apache version 2.2.16 installed on it.I want to make this dtrace enabled.How can i do this.Thanks in advance
For enabling dtrace on Freebsd one can follow this link.
Ive tried it its working.
http://prefetch.net/projects/apache_modtrace/index.html
One things just in build instruction dont use the mapfile.Just skip it.By doing this the build will be successful

Resources