Complete installation guide for NIST Biometric Image Software (NBIS)? - installation

When trying to install NBIS I get the following error on linux, when running ./setup.sh:
zsh: permission denied: ./setup.sh
and the following when running make config:
/bin/sh: 3: ./configure: Permission denied
/home/...../Downloads/Rel_5.0.0/buildutil/png_libs.mak:54: recipe for target 'config' failed
make[3]: *** [config] Error 1
I used ARK to extract the zip file.
What am I doing wrong?

Use the unzip utility to extract the .zip file containing the NBIS source. unzip maintains the file permission structure of the zip file contents. Then you can install as per normal.
Install guide
unzip nbis_v5_0_0.zip
cd Rel_5.0.0
sudo mkdir /usr/local/NBIS/Main
# Ensure a absolute path is provided to setup.sh
./setup.sh /usr/local/NBIS/Main --64 #or --32 if you have a 32 bit system
make config
make it
sudo make install LIBNBIS=yes
cd ..
rm -r -f Rel_5.0.0
I don't have access to the zip/can't use unzip
You can change the permissions of the relevant files with:
chmod ug+x ./setup.sh
chmod ug+x ./png/src/lib/png/configure
chmod ug+x ./png/src/lib/zlib/configure
Then you can install as per normal.

I installed first gcc and x11 library in order to avoid error:
A gcc library
sudo apt-get install cmake libc6-dev libc6-dev-i386 g++-multilib
X11 library
sudo apt-get install libx11-dev
Then I unzip nbis_v5_0_0
cd Rel_5.0.0
./setup.sh /path_to_run --64 (or --32)
sudo make config
sudo make it
sudo install LIBNBIS=yes

Related

Cannot install homebrew packages because permission is denied

When I run brew install {package}, I get the following:
ln: /usr/local/bin/{package}: Permission denied
But if I try to use sudo brew install {package}, I get the following:
Error: Running Homebrew as root is extremely dangerous and no longer supported.
How do I get homebrew working again?
You can fix permissions for Homebrew by running:
cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var Frameworks
See this answer for details: https://stackoverflow.com/a/44208097/1807667

How do I install libsuinput on Raspberry Pi 10 (Buster)

I'm working on a project that requires libsuinput available here
https://github.com/tuomasjjrasanen/libsuinput
I've downloaded it but when I follow the instructions in the readme
Just run the following commands:
./configure && make && make install
I get the following error
bash: ./configure: No such file or directory
Instructions couldn't be simpler but its just not working. Am I missing something or is the module not compatible with the latest version of Raspberry Pi?
You need to run ./autogen.sh first - it will call autoreconf that will create configure script.
If you get:
pi#raspberrypi:~/libsuinput $ ./autogen.sh
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:9: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /usr/bin/autoconf failed with exit status: 1
install libtool:
sudo apt-get -y install libtool

Tarantool doesn't work on Ubuntu 16 (libbfd-2.26-system.so: cannot open shared object file)

I installed Tarantool 1.7 on Ubuntu 16 as instructed https://tarantool.org/download.html
The installation was successful, but when i run tarantool it fails with error:
tarantool: error while loading shared libraries: libbfd-2.26-system.so: cannot open shared object file: No such file or directory
Check 'binutils' has been installed, if not:
$ sudo apt-get update
$ sudo apt-get install -y binutils
Check version:
$ ls /usr/lib/x86_64-linux-gnu/libbfd*
if you see:
/usr/lib/x86_64-linux-gnu/libbfd-2.26.1-system.so
then you need:
$ cd /usr/lib/x86_64-linux-gnu
$ sudo ln -s libbfd-2.26.1-system.so libbfd-2.26-system.so

Ghostscript not writable

Trying to install octave on a new Macbook, but keep running into problems using Homebrew. I am following directions here:
http://wiki.octave.org/Octave_for_MacOS_X
I run into the error:
Linking /usr/local/Cellar/ghostscript/9.14...
Error: Could not symlink share/ghostscript/Resource
/usr/local/share/ghostscript is not writable.
After entering:
sudo chown -R username:admin /usr/local/bin
brew link ghostscript
I still get the same error. How do I make ghostscript writable?
Using this command worked for me:
sudo chown -R `whoami` /usr/local/share/ghostscript
After that it was possible to create the symlink with:
brew link --overwrite ghostscript
Notice that /usr/local/share is outside /usr/local/bin.
Try sudo chown -R username:admin /usr/local.

Bash Deployment of PostgreSQL - Installtion Trouble

I am trying to build postgreSQL from source on my Debian 6.0 server using a bash shell script but I am running into problems. This is the code I have made so far:
# Initial
apt-get update
apt-get -y install aptitude bzip2 libbz2-dev git-core
aptitude -y install sudo python-all-dev python-setuptools libxml2-dev libgeoip-dev libxslt1-dev uuid-dev gcc automake autoconf libpcre3-dev libssl-dev unzip zip python-psycopg2 libpq-dev wget make libreadline-dev
aptitude -y full-upgrade
# POSTGRESQL
###############################
# Postgresql Download & Install
wget http://ftp.postgresql.org/pub/source/v8.4.6/postgresql-8.4.6.tar.gz -P /tmp
mkdir /tmp/postgresql
tar xzf /tmp/postgresql-8.4.6.tar.gz -C "/tmp/postgresql"
cd /tmp/postgresql/
mkdir /usr/local/pgsql
./configure --prefix=/usr/local/pgsql
cd /usr/local/pgsql
make
make install
# Add User
useradd -s /bin/false "postgresql_user"
chown "postgresql_user" usr/local/pgsql
# Clean Up
rm /tmp/postgresql-8.4.6.tar.gz
rm /tmp/postgresql
# Create Database
echo "CREATE ROLE PSQL LOGIN ENCRYPTED PASSWORD 'PASS';" | sudo -u postgresql_user usr/local/pgsql
sudo -u postgresql_user /opt/bin/createdb --owner PSQL DATADB
The error I get is as follows:
/root/StackScript: line 22: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
chown: cannot access `usr/local/pgsql': No such file or directory
sudo: usr/local/pgsql: command not found
sudo: /opt/bin/createdb: command not found
Can anyone tell me where I am going wrong please? If there is anything else obvious I have done incorrectly I am always open to hear about it!
The first thing you're doing wrong is compiling an old point release of an old major version. Why on earth would you be using 8.4.6 when there's 8.4.15, with quite a few significant bug fixes? See the versioning policy. You shouldn't be using 8.4 for new deployments anyway, use the latest version for new deployments.
Even better, use the debian packages at pgapt.debian.org rather than compiling yourself.
The immediate cause of the error is that unpacking the source tarball produces a directory like postgresql-8.4.6 so you have /tmp/postgresql/postgresql-8.4.6. You're trying to execute the configure script in /tmp/postgresql not /tmp/postgresql/postgresql-8.4.6. cd into the created directory before running configure.

Resources