Installation of Wpasupplicant failed on ubuntu 16.04 server, problems with libnl-3-dev - wpa-supplicant

I am trying to install the latest Wpa_Supplicant on Ubuntu 16.04 server from the official website. According to http://deployingradius.com/scripts/eapol_test/ I uncommented CONFIG_EAPOL_TEST=yes and run make eapol_test but I get failed:
/usr/bin/ld: cannot find -lnl
collect2: error: ld returned 1 exit status
Makefile:1613: recipe for target 'eapol_test' failed
make: *** [eapol_test] Error 1
However, when I did the same but using Ubuntu 14.04 server, everything is ok!
I realized that the package libnl-devresolves the problem of **/usr/bin/ld: cannot find -lnl** for ubuntu14.04. However, the Ubuntu 16.04 does not have libnl-dev in his repository, instead of It has libnl-3-dev, but wpa_supplicant failed when I run make eapol_test.
Could anyone help me install wpa_supplicant on ubuntu 16.04 plz?, I am trying run everything on ubuntu 16.04 and not on ubuntu 14.04.
Thank you in advance,
Javier

You might try the following:
install the package libnl-genl-3-dev
in the .config file uncomment the following (2nd) line:
# Use libnl 3.2 libraries (if this is selected, CONFIG_LIBNL20 is ignored)
CONFIG_LIBNL32=y
I could then link the target correctly, because it then used "-lnl-3" instead of "-lnl"

Related

How to fix HTTPD (Apache) Error 256 on OSX Monterey 12.5

I have a Apache2 installed with Homebrew on a Mac running OSX Monterey. I haven't done LAMP development for a while, so I'm not sure when the error started, but I've recently updated OSX to 12.5. When I returned to working on a LAMP project, my Apache installation stopped working. Running brew services produced the following output: Name Status User File httpd error 256 root ~/Library/LaunchAgents/homebrew.mxcl.httpd.plist mysql started Nizz0k ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist.
Running the stop, start, and restart commands produces "success" output in the terminal, but Apache doesn't work. I can't navigate to my local vhosts, and of course, running brew services still shows an error.
In running apachectl -e error Apache complains about permissions to the error logs
I have tried:
uninstalling and reinstalling HTTPD
The apr-utilities fix.
confirming Mac installed Apache is stopped.
At this point, I think my problem is that there was conflicting information about how to run Apache on Homebrew. Earlier versions apparently required sudo, but running it this was now produces warnings like this:
Warning: Taking root:admin ownership of some httpd paths:
/usr/local/Cellar/httpd/2.4.54/bin
/usr/local/Cellar/httpd/2.4.54/bin/httpd
/usr/local/opt/httpd
/usr/local/opt/httpd/bin
/usr/local/var/homebrew/linked/httpd
This will require manual removal of these paths using `sudo rm` on
brew upgrade/reinstall/uninstall.
Warning: httpd must be run as non-root to start at user login!
/Library/LaunchDaemons/homebrew.mxcl.httpd.plist: service already bootstrapped
Bootstrap failed: 37: Operation already in progress
Error: Failure while executing; `/bin/launchctl bootstrap system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist` exited with 37.
The issue is even after removing the paths as suggested in the error, a reinstallation brings Root back as the owner.
I do have the same problem with nginx.
Manually unloaded it and then restarting it worked fine.
Try:
sudo launchctl bootout system /Library/LaunchDaemons/homebrew.mxcl.httpd.plist
sudo brew services start httpd

I am installing Open-edx devstack for local machine through Ubuntu vm. but getting the following error after running the command make dev.provision

error log
I already installed pavar (python).
Error classified as Syntax error.
these are the files and directories created

WSL Stopped working with error: 0x80070003

WSL2 stopped working. When, I do a new installation of linux distro, it throws the following error on click of the launch button:
Installing, this may take a few minutes...
WslRegisterDistribution failed with error: 0x80070003
Error: 0x80070003 The system cannot find the path specified.
Press any key to continue...
the wsl --help command works fine
however wsl -l command and other wsl commands throw the following error
The system cannot find the path specified.
Check if you have any .wslconfig inside your profile in %USERPROFILE% folder and delete it! I finally got it working
FIY: https://github.com/microsoft/WSL/issues/3232#issuecomment-777023885
I was getting the same issue and it was due to my bad attempt at deleting the installed Distro. If yours is the same case, this should be pretty easy to fix, use the wsl --unregister <DISTRO_NAME> which in my case was debian so wsl --unregister debian unregistered the old path for the Debian executable and then I installed Debian again. This worked for my personal case but I thought it might help someone on the internet.

Netatalk on arch linux gives error --enable-fhs common not found

I am trying to install Netatalk on my arch linux arm running on my raspberrypi 3. While executing makepkg it displays following error:
--enable-fhs common not found
I was following the instructions on this forum question https://archlinuxarm.org/forum/viewtopic.php?f=15&t=518 on how to install Netatalk. Any idea how to fix this?
Any ideas or suggestions would be appreciated, even other packages that could enable a part my server to be used as time machine for my Mac......

Error in phpldapadmin on Ubuntu 18.04 "Fatal error: Cannot redeclare password_hash() in ...../lib/functions.php on line 2236"

Until writing this question, there is no entry for "Php LDAP Admin" on the Ubuntu 18.04 repositories. I had to install and deploy it manually as a php program. I did this, but unfortunately, I faced this error:
Fatal error: Cannot redeclare password_hash() in ..../phpldapadmin/lib/functions.php on line 2236
I checked the code either with phpv5.6 and phpv7.2; the error remains same as above.
Any idea?
It seems that, the best solution for the short-time is using the project under the Ubuntu 16.04. When you install the phpLDAPadmin from Ubuntu 16.04 repositories, it automatically checks for php7.0 and installs it if it does not exist.
On Ubuntu 18.04, there is no entry for phpLDAPadmin yet, but with some efforts may you could deploy the code with php7.0. Furthermore, it could be beneficial to check following link, to patch some major bugs and also update phpLDAPadmin from v1.2.2 to v1.2.3:
http://www.jouvinio.net/wiki/index.php/PhpLDAPAdmin_Update_Version_1.2.2_vers_1.2.3