What's the difference of source complile or use apt? - apt

For example, I want to install glog, I could use
sudo apt-get install libgoogle-glog-dev
or
git clone https://github.com/google/glog
./autogen.sh && ./configure && make && make install
What's the difference?
I'll appreciate it if you help me.

In
sudo apt-get install libgoogle-glog-dev,
It installs and maintains programs and other collections of files (data, documentation, etc.) in the form of packages.
while in second one you first download the source from Github repository and then run various shell files which get it installed on your system.
I hope it helps you.

Related

How to switch with SmartGit to non commercial version on Ubuntu 20.04

I use Ubuntu 20.04. After 30 days of using SmartGit, it wants to change to commercial version. I use it for personal purposes.
I tried this:
How to change SmartGit's licensing option after 30 days of commercial use on ubuntu?
and this:
https://www.syntevo.com/blog/?p=3669
but couldn't find such folders and files.
I also uninstalled and reinstalled it three times with these commands:
sudo apt remove smartgit
sudo apt autoclean && sudo apt autoremove
and
sudo apt install smartgit
but nothing changed.
So can anyone know a way how to change to non commercial version of SmartGit on Ubuntu 20.04?
Only applying "Delete the config files of SmartGit" part was enough for me.
So:
rm -rf ~/.config/smartgit
Then run smartgit and it asks for licensing options again like the first install.
Yes the other options for smartgit are lost removing the folder completely so a fine tuning may be done to this approach if needed.
Wow, I found the solution!
With the help of this:
https://askubuntu.com/questions/244754/how-to-completely-remove-application
So the process is
Remove SmartGit
sudo apt remove smartgit
sudo apt autoclean && sudo apt autoremove
Delete the config files of SmartGit
Navigate to the home directory,
Ctrl + H to show the hidden folders,
in the .config folder
delete the smartgit folder.
Install SmartGit
sudo apt install smartgit
Choose the free non-commercial option
Be careful. Choose not the default option but
the free non-commercial option.

FSL installation in Ubuntu FAILED message

I am a traditional Windows user and therefore you have to excuse me for my lack of experience with other OS. I installed Ubuntu in order to install FSL in my computer (seems the Windows installation failed so I tried this). However, the download goes right, but at the end it says "[FAILED] Unable to unpack FSL".
How can I solve it?
Thanks a lot
First of all, this is not a programming question. If it can still be moved to AskUbuntu (or SuperUser) it may be better appreciated.
In Ubuntu the easy way to install software is through the package manager. This is by far the least amount of work and installs binary packages in default locations (FSL is in the path straight away), plus it takes care of all the dependencies!
FSL is in the NeuroDebian repository, and if you add this to one of your 'software sources' then you can install it via Ubuntu's package manager, APT:
go to https://neuro.debian.net and find out how to add the right repository, e.g.
$ wget -O- http://neuro.debian.net/lists/focal.de-fzj.full | sudo tee /etc/apt/sources.list.d/neurodebian.sources.list
$ sudo apt-key adv --recv-keys --keyserver hkp://pool.sks-keyservers.net:80 0xA5D32F012649A5A9
update the list of packages APT can find:
$ sudo apt update
install the fsl packages you want, e.g.
$ sudo apt install fsl-5.0 fsl-harvard-oxford-cortical-lateralized-atlas

Janus WebRTC installation issue

I am installing Janus WebRTC Gateway in a Ubuntu Machine (14.04 64 bit). I followed the instructions as in the following link:
However, I get the following error when trying to execute janus:
https://github.com/meetecho/janus-gateway (readme.md file)
[FATAL] [janus.c:main:3670] No Janus API transport is available...
enable at least one and restart Janus
Anyone has any idea what the issue might be? I will only use the REST API without WebStockets or RabbitMQ.
I successfully installed Janus on Ubuntu 14 according to the following steps:
sudo apt-get install libmicrohttpd-dev libjansson-dev libnice-dev libssl-dev libsrtp-dev libsofia-sip-ua-dev libglib2.0-dev libopus-dev libogg-dev libini-config-dev libcollection-dev libwebsockets-dev pkg-config gengetopt automake libtool doxygen graphviz git cmake
sudo apt-get install libavformat-dev
mkdir -p ~/build
cd ~/build
git clone git://github.com/meetecho/janus-gateway.git
cd janus-gateway
sh autogen.sh
./configure --disable-data-channels --disable-websockets --disable-rabbitmq --disable-docs --prefix=/opt/janus LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" CFLAGS="-I/usr/local/include"
make && sudo make install
sudo make configs
Running it by:
cd /opt/janus/bin/
./janus -F /opt/janus/etc/janus/
I had this issue before, I had write a script to install everything just run this
wget https://gist.githubusercontent.com/johnmelodyme/966f474a99b6dd0cf4e7ac19ba4258da/raw/0f1779499c62eeee3e2a577ef641e94e57b71154/janus.sh && sh janus.sh
Hope This Help Much, I believe there are certain dependencies needs to be installation but you missed it. In https://github.com/meetecho/janus-gateway it stated the Dependencies needed, have to be installed without error.
It is because libmicrohttpd version is lower than requirement, Download and install libmicrohttpd manually (dont use yum or apt-get).

Direct download git without installer

How might I be able to download git (console or UI, I don't care which) without using the installer (direct download) on mac. Maybe there is a possibility of having an app on the desktop that I can launch?
You can do it with Homebrew :
brew install git
Or compiling from source (as described at git-scm.com) :
// get tar via curl, wget.. then :
tar -zxf git-1.7.2.2.tar.gz
cd git-1.7.2.2
make prefix=/usr/local all
sudo make prefix=/usr/local install
Can also try MacPorts:
port install git
I just realized that git was already installed on my mac, but the previous two answers were good as well.

Having trouble configuring sphinx search

I downloaded sphinx 0.9.9 to my ubuntu 10.4 machine.
I ran cd ~/sphinx-0.9.9 then ./configure, then make then make install.
Make install gave me errors so I ran sudo make install and then there were no errors.
I am going through the documentation. I am at 2.6. Quick Sphinx usage tour.
It says:
All the example commands below assume that you installed Sphinx in /usr/local/sphinx, so searchd can be found in /usr/local/sphinx/bin/searchd.
I do have /usr/local/sphinx but there is no bin folder in it, just etc and var.
It then also says:
there's example.sql sample data file to populate that table with a few documents for testing purposes:
$ mysql -u test < /usr/local/sphinx/etc/example.sql
but inside my /usr/local/sphinx/etc/ folder there is only one file: sphinx.conf
and according to the docs that file shouldnt event exist yet, it should be sphinx.conf.dist
I tried to install sphinx 6 months ago and gave up. I am only revisiting it now, so maybe there is a chance I screwed something up then that is giving me problems now. Is there a way to remove everything sphinx so I can try again fresh? Or does anyone have any other ideas what is going on?
You might try installing the package version of sphinx; it's slightly older, but should work as well. As far as compiling problems, you might check the SphinxSearch forum.
Looks like you have installation issue here.
The output of make command will be helpful.
I would suggest reinstalling sphinx, just delete the folder/or run sudo make uninstall, where you had installed the sphinx, and then following these steps to reinstall sphinx
Update and Grab dependencies. Run these commands in order to get the files you need to install Sphinx.
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install build-essential
sudo apt-get install libmysqlclient15-dev
Download source, Untar and prep. Here's where it gets a bit complicated. You'll need to extract the source, change into the directory and configure Sphinx. Do that with these commands.
tar xvzf sphinx-0.9.8.1.tar.gz
cd sphinx-0.9.8.1/
./configure --with-mysql-includes=/usr/include/mysql --with-mysql-libs=/usr/lib/mysql
Make and Install Sphinx
make
sudo make install

Resources