FreeRadius fails to install at ./config - freeradius

I'm trying to install FreeRadius 3.0.15. I'm on Ubuntu 16.04. I downloaded FreeRadius 3.0.15 from the official downloads page.
My issue is that when I go into the file and try to run sudo ./configure, the process terminates on
configure: error: "inconsistent LDFLAGS between -lssl '' and -lcrypto '-L/var/lib/docker/aufs/diff/2472245c805ac63cb1eebc4df9c07ec6ee975313e737a5183d41504f3d3f5f9b/usr/lib/x86_64-linux-gnu -Wl,-rpath,/var/lib/docker/aufs/diff/2472245c805ac63cb1eebc4df9c07ec6ee975313e737a5183d41504f3d3f5f9b/usr/lib/x86_64-linux-gnu'"
See `config.log' for more details
What does it mean for the LDFLAGS to be inconsistent, and how can I fix this error?

I was able to fix this error by reinstalling lcrypto with sudo apt-get install libssl-dev. However, I'm now getting a new error:
configure: WARNING: FAILURE: rlm_rediswho requires: hiredis.h libhiredis.
So now I'm going to try to figure that out.
EDIT: figured out second error. Fixed with sudo apt-get install libhiredis-dev
In short, this was all just dependency issues.

Related

Failing to install VEP dependencies

I'm trying to install VEP, but am getting stuck installing its dependencies.
I try to install as suggested here https://www.ensembl.org/info/docs/tools/vep/script/index.html
cd ~/bin
git clone https://github.com/Ensembl/ensembl-vep.git
cd ensembl-vep
perl INSTALL.pl
But I get this error:
ERROR: DBI module not found. VEP requires the DBI perl module to function
http://www.ensembl.org/info/docs/tools/vep/script/vep_download.html#requirements
So, I then try and install DBI as suggested here https://www.ensembl.org/info/docs/tools/vep/script/vep_download.html#requirements
cpanm DBI
But I get this error:
Can't write to cpanm home '/Users/michaelflower/.cpanm': You should fix it with chown/chmod first.
How to I 'fix' it with chown/chmod??
On Ubuntu 20.04 this worked for me:
sudo apt install libdbi-perl
But then I ran into a bunch of other errors which I solved sequentially by doing these things (I restarted the installation after every step but I guess if you first do them all, then it should work in 1 go):
sudo apt update # Or you'll more errors
sudo apt install unzip
sudo apt install build-essential
sudo apt install libbz2-dev liblzma-dev zlib1g-dev
sudo apt install libcam-pdf-perl
cpan Bio::DB:HTS # Takes a while as well
This perl modules wants to install
cpan Bio::SeqFeature::Lite # Takes quite a while
Which wants to install:
cpan XML::DOM XML::Parser::PerlSAX XML::Twig
Which then ultimately fails with:
Files=109, Tests=72, 4 wallclock secs ( 0.28 usr 0.09 sys + 2.29 cusr 0.83 csys = 3.49 CPU)
Result: FAIL
Failed 103/109 test programs. 32/72 subtests failed.
make: *** [Makefile:837: test_dynamic] Error 255
MIROD/XML-Twig-3.52.tar.gz
one dependency not OK (XML::Parser); additionally test harness failed
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIROD/XML-Twig-3.52.tar.gz
So I try to install XML::Parser
cpan XML::Parser
and it fails too
Note that if you build against a shareable library in a non-standard location
you may (on some platforms) also have to set your LD_LIBRARY_PATH environment
variable at run time for perl to find the library.
No 'Makefile' created TODDR/XML-Parser-2.46.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
I'll ddg some more...
... ok, I just reran to original install command and it crashes with a new message, it wants me to intall LWP::Simple. So I do, on my first attempt it crashed with a permissions error so I add sudo
sudo cpan LWP::Simple
Restarting install...
perl INSTALL.pl
SUCCESS!

Clang Error Raised When Compiling Using AVR-GCC on Mac OS

I am trying to cross compile a program for an AVR using avr-gcc that I installed through macports. In the terminal:
avr-gcc -O1 -DF_CPU=1000000UL -DBAUD=9600 -I. -I/opt/local/avr/include/ -Wl,-Map,main.map -mmcu=atmega328p main.c -c
which results in the errors:
clang: error: unknown argument: '-mgcc-isr'
clang: error: unknown argument: '-mno-skip-bug'
The above cross compile used to work but after updating to Catalina and reinstalling avr-gcc something has gotten messed up. Searching google I have found that, with newer versions of Clang, if Clang doesn't recognize the command line argument then it raises an error. The suggestions said to use something like -Wno-error=gcc-isr. So my command becomes:
avr-gcc -O1 -Wno-error=gcc-isr -DF_CPU=1000000UL -DBAUD=9600 -I. -I/opt/local/avr/include/ -Wl,-Map,main.map -mmcu=atmega328p main.c -c
which results in:
cc1: error: ‘-Werror=gcc-isr’: no option -Wgcc-isr
It looks like something is getting messed up between Clang and avr-gcc. Although I'm not sure why Clang gets called when I am using avr-gcc. Does anyone have any idea what's going on here?
Ok, I'm not sure why clang gets called with avr-gcc but I did manage to get the code to compile by uninstalling: (1) avr-gcc and (2) avr-binutils through macports using:
sudo port uninstall avr-binutils
sudo port uninstall avr-libc (I uninstalled this because it depends on avr-gcc)
sudo port uninstall avr-gcc
then I reinstalled it using
sudo port install avr-gcc
which asked if I wanted install avr-binutils. I then reinstalled avr-libc. These are the direct steps. I made a mistake by hitting 'N' when it asked me if I wanted to install avr-binutils. So I had add:
sudo port clean avr-binutils
to clear that error. Once that was cleared I could follow the above steps. Again, this cleared the error by just reinstalling the cross compiling software but I still think there is some underlying misunderstanding of the original problem.
I ran into the same issue while I was trying to compile a keyboard firmware that runs on an atmega32 microcontroller and I had to rebuild avr-gcc locally to fix things.
While the accepted solution did not work for me - I got the same error again
clang: error: unknown argument: '-mgcc-isr'
clang: error: unknown argument: '-mno-skip-bug'
What did work for me was to first uninstall avr-binutils and avr-gcc like so
brew uninstall --ignore-dependencies avr-binutils
brew uninstall --ignore-dependencoes avr-gcc#9
and then reinstall avr-binutils
brew install avr-binutils
Instead of simply reinstalling avr-gcc, install from source like so
brew install --build-from-source avr-gcc#9

PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' with Jenkins

I'm getting this warning when running the phpunit test suite in Jenkins pipeline.
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/20160303/pdo_sqlite.so' - /usr/lib/php/20160303/pdo_sqlite.so: undefined symbol: sqlite3_column_table_name in Unknown on line 0
However this warning is not thrown when running the test suite directly in terminal.
I have PHP 7.1 in my system and this is the only PHP version I have installed. php7.1-sqlite3 is installed.
Thank you in advance.
As far as I have found out, there is a faulty file in /usr/local/lib called libsqlite3.so.0 which points to libsqlite3.so.0.8.6. I renamed the file in case it was needed for something. With the command:
cd /usr/local/lib
sudo mv libsqlite3.so.0 ./libsqlite3.so.0.back
But you can also delete it:
rm libsqlite3.so.0
The thread that lead me to the answer: link
This solved my problems, and I hope they solve yours as well :)
I had this same issue with PHP 7.1 on Ubuntu 16.04.
Running the following fixed the issue for me:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.1-sqlite3
Have you built SQLite from source? If yes, enable Column metadata and recompile with
CFLAGS="-DSQLITE_ENABLE_COLUMN_METADATA=1" ./configure
make
sudo make install
Have fun using the cutting edge SQLite.
Reference - https://www.sqlite.org/compile.html#enable_column_metadata

unable to build and install openH264 video codec for ios

I'm trying to install openH264 for ios. Here are the steps I run from the openH264's current directory using terminal:
$ make OS=ios ARCH=armv7
The default location of openh264 installation was set /usr/local in the makefile. So, I just ran the following command
$make install
But I got this error:
nasm -DUNIX64 -DPREFIX -f macho64 -Icodec/common/x86/ -o codec/encoder/core/x86/coeff.o codec/encoder/core/x86/coeff.asm
nasm: fatal: unrecognised output format `macho64' - use -hf for a list
type `nasm -h' for help
make: *** [codec/encoder/core/x86/coeff.o] Error 1
I am following this instructions also to build the codec. Besides after successful installation I have to include it into pjsip for video support.
I don't know what is the problem with the command? Thanks in advance.
With help of this I solved it.
Just run :
$sudo make OS=ios ARCH=arm64 install
for arm64 architecture. Change the ARCH value to armv7, armv7s for devices and i386 and x86_64 for the simulator. By default it installed in /usr/local/lib directory. I used sudo to get admin privilege as at the end of complication it throwing error that permission denied to mkdir -p /usr/local/lib .

GeoIP install failure, advice needed

Several hours of frustration here and looking to see if anyone has any advice.
I'm trying to install GeoIP vie Homebrew and receive the following error just prior to the install finishing:
"Error: The linking step did not complete successfully
The formula built, but is not symlinked into /usr/local
You can try again using `brew link geoip'"
brew link geoip returned this error:
"Error: Could not symlink file: /usr/local/Cellar/geoip/1.4.8/etc/GeoIP.conf.default
/usr/local/etc is not writable. You should change its permissions."
I also tried "sudo link geoip" and recieved this error:
"Cowardly refusing to `sudo brew link'"
I'm not entirely familiar with permissions and such and was wondering what I needed to do from the command line to get this to link properly. Any help greatly appreciated.
I think I found the answer. This script fixes the permissions issue:
ruby -e "$(curl -fsSL https://gist.github.com/raw/768518/fix_homebrew.rb)"

Resources