These are the files in /usr/bin I am following this tutorial to cross compile a simple C program: Now I save this is a .c file and try to compile it; This is hapening only when I am using arm-linux-gnu-gcc. But when I am using gcc, it works fine. Why is arm-linux* giving this error? Update Verbose Host config…
Tag: linux
Genymotion on VMWare
I’m on Xubuntu running with VMWare on Windows 7. I’m developing an android app’ and use genymotion to run virtual android device. But from few days, when I try to run my virtual device genymotion show me this error : (translated from French) Impossible to run the Genymotion virtual terminal.…
Copying compiled binaries to another machine using Flash Drive
This may be a stupid question, but if I compile a shared library using g++ on one distribution of Linux, and then move those libraries as object files via flash drive to another computer with the exact same Linux distro and version of g++ will I still be able to link those libraries in my source files on the …
How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source?
How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: After using this command, I get the old version Answer Try this config line instead to overwrite the default. It installs to prefix /usr/local/ssl by default in your setup when you leave off the prefix. You probably have…
What’s the difference between insmod and modprobe?
I know insmod and modprobe are used to insert module into the kernel. But, what’s the difference between them? And, why is it dangerous to insert modules with force option in modprobe? Answer modprobe is the intelligent version of insmod. insmod simply adds a module where modprobe looks for any dependen…
How to delete duplicated rows based in a column value?
Given the following table Using a bash shell script based in Linux, I’d like to delete all the rows based on the value of column 1 (The one with the long number). Having into consideration that this number is a variable number I’ve tried with awk ‘{a[$3]++}!(a[$3]-1)’ file But I am not…
Alternate program for ‘less’ linux command/Making ‘less’ Secure
I want to write an interactive program like ‘less’ command for Linux. Reason I can’t use less in my setup because you can execute shell commands within less prompt ‘!cmd’ which can be a major security risk for any production box. My preferred language is C, however, if anyone can…
cv2.hough circles error on video
When I run cv2.HoughCircles() I am getting the error My code is GNU nano 2.2.6 File: cv.py Answer you are not checking if you circles is None. If you do that, it works: Output generated:
Curl API and command line options to Authenticate with user name & password enabled https url
I am trying to authenticate against a HTTPS URL with “user name and password” using C-based curl API’s and curl command line arguments in linux (Fedora 14 curl 7.30.0 (i686-pc-linux-gnu) libcurl/7.30.0 OpenSSL/1.0.0 zlib/1.2.5) ) platform. When I use the URL in the Mozilla web browser it pro…
Linux, waitpid, WNOHANG, child process, zombie
I running my program as daemon. Father process only wait for child process, when it is dead unexpected, fork and wait again. But when child process being killed with -9 signal, the child process goes to zombie process. waitpid should return the pid of child process immediately! But waitpid got the pid number …