I'm quite new to Ubuntu/Linux in general, I'm a mac user and have been able to double click/drag applications to install them.
I've recently been trying to set up some functionality on my Ubunutu 18.04 installed on my mac, and what a saga.
Read the readme, which says, use ./configure and make && makefile.
I've just extracted it on my download folder... I searched on how to install something from Github, and there's no generic answer.
My question is, how can I install this thing and get it onto my computer?
which file am I supposed to
makeandmakefile? Am I supposed to use a variable after make or just type make when I'm in the directory?
----------additional details---------
I have gone into ./configure and ./configure --help. The readme file says, the next step is to use make && makefile. I've type those commands in and a few more, but nothing happens.
I tried other ./configure commands e.g. ./configure install-sh, install-sh and this appears:
configure: WARNING: you should use --build, --host, --target
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... Invalid configuration `CC': machine `CC' not recognized
configure: error: /bin/bash ./config.sub CC failed 7 4 Answers
If you'd like to save some effort and have the convenience of the APT package manager supporting you, xf86-input-mtrack is provided in Ubuntu's standard universe repository through the package xserver-xorg-input-mtrack.
Note that, except for Ubuntu 14.04, version 0.3.1 is provided, which is somewhat older than 0.5.0 at your Github link. Here's the Github readme for version 0.3.1, where you can see that TapDragEnable is still included, if you needed that in particular.
To install it:
- Open a terminal (press Ctrl+Alt+T).
Run the following:
sudo apt-get update sudo apt-get install xserver-xorg-input-mtrackReboot.
As pointed out by other answers: If you are solely interested in getting the software installed, using a package manager like apt is the easiest way to go.
But as this does not answer the question of how to get the software installed from a Github download, I want to clarify a possible misunderstanding and outline the most common steps to install software from Github.
It is important to note that Github is primarily hosting source code repositories. This means that what you get by clicking on the download button of a Github repository is not an executable program or installer, but the source code of the program. Some repositories provide pre-built executables at the "releases" page of the repository. You can reach this page by clicking on the "releases" label of the respective Github repository page. Pre-built executables of xf86-input-mtrack for example can be found here:
As Github can host any kind of software (and even non-software), the ways to install applications hosted on Github vary wildly. This is the reason why there are no generic instructions on how to install software from Github.
The program you want to install is written in the programming language C. C source code is almost always intended to be compiled into an executable binary file before it can be installed. The README document refers to this procedure with the term "Building". This is why this document gives you instructions on how to build as well as how to install your program.
The commands .configure, make, make install are common steps to build and install a program written in C. Most installation guides implicitly assume that you know where and under what circumstances you need to enter these commands, which sadly is discouraging for beginners. These are the steps you have to take before you can follow the instructions in the README:
- Open the terminal. It will provide you with a command line where you can enter commands
- Type in
cd /path/to/your/download, but substitute/path/to/your/downloadwith the actual path to the folder with the source code you downloaded. Hit enter to execute the command. By pointing your computer to this directory you let it know, that the following commands to build and install shall be applied there. - Now follow the instructions outlined in the
README.
Before you do anything else, please do the following
sudo apt-get install gitand then clone the repository, like so
git clone if there is a new version available you can update easily like so (inside the folder)
git pullNow let's see. You will need developer packages to get there. Unfortunately this is not mentioned in the description.
If you didn't install build-essential and I'd guess gcc (looks like it but then again I'm an admin not a dev), do so now. Also it's looking for gawk. I hope that's it, might be another package or lib. Didn't have the time to read all of it.
sudo apt-get install build-essential gcc autoconf gawk pkgconfigYou also need at least these packages which are difficult to identify from the errors:
sudo apt install xserver-xorg-dev x11proto-core-dev x11proto-input-dev libmtdev-devThis may be insufficient. It depends on your setup.
Go to the folder which you "gitted" above and then again try.
./configureIf ./configure outputs errors, as a general rule of thumb, when you get an error like no package thingy found, you can try running apt search thingy and see if there is something like libthingy-dev, which is probably what you need. If not, I hate to say this, but, put the error into a search engine, and see if someone has trod the path before you...
When it exits successfully, you can run
makeif it outputs errors, follow the same procedure as for ./configure, and afterwards run
make clean
./configure
makeand when that exits successfully, you can run
sudo make installAddtional information. If you would like to have a .deb package set the mentioned prefix and execute the package builder like so.
./configure --prefix=/usr
make
sudo make install
dpkg-buildpackage 0 You are downloading the source of a program and building it yourself. This is a very different concept to clicking on an installer.
It doesn't matter where you unpack the source (in most cases). You're not "installing" it there, just putting it somewhere you can build it.
You just do what it says. Type those commands, exactly as written in the readme. If it doesn't work, please edit your post stating what goes wrong.
7