I am trying to install perl DBI on SUN solaries 11 but I always got the following error: I did the following steps: Downloaded and extracted DBI-1.628 then in the shell command: Answer This means it cannot find a compiler on your machine. You should add the path to the compiler to your PATH variable. gcc and …
Duplicate MySQL Database in Linux CLI without Exporting an SQL File
I have a MySQL database which I want to duplicate using the Ubuntu Linux CLI without first having to download a MySQL file. I tried the following command: mysql -uroot -e’mysqldump -uroot db_old | mysql -uroot backup db_new;’ But got this error: ERROR 1064 (42000) at line 1: You have an error in y…
Shogun fails to compile. Are these Shogun bugs?
I am trying to compile Shogun on Fedora 23 64bit, but it fails with the errors below. Version 4.0.0 have the same issue. Can anyone tell me, if there errors are bugs in Shogun or something I have done wrong? And here is the output with the errors. Update Here is the output from cmake Answer Fedora 23, shogun …
Hackers spamming my mail server
I’ve had a postfix(SASL) mail server running well for a long time with no problems. However recently I’ve installed vsftp to allow users to login and download files. I created a linux user with a generic username/password which I thought didn’t matter as I had disabled ssh login and wasnR…
Glob that doesn’t match anything expands to itself, rather than to nothing
I want to iterate over the files in a folder of a special type (like .test): So I wrote a little script names for_loop: After (chmod +x for_loop) I can start it with ./for_loop. If there are .test-files, everthing is fine, BUT if there is no file in the folder that matches *.test, the for-loop is still execut…
Fork process: Resume parent process while children terminated (Linux)
I’ve written a C++ application that waits until an event occurs (e.g. wait for incoming connection). After that event occured, it will continue by forking a child process that handles that event. So, my code looks essentially like this: My expectation now was that the child process will terminate (becau…
Permanently define environment variable (for Python gdal undefined symbol)
I have installed gdal version 1.11.2, however I have problems with undefined symbols. A proposed solution for this is given by gerrit: However, this only works if I call the python script from the command line. If I call the script from a subprocess.Popen, this will obviously not work. Is there a way to defin…
How to run elasticsearch as a service on CentOS 5
I found only this official guide to install Elasticsearch 2.0 as a service but there is no mention of CENTOS5. What are the steps to install ES as a service on CentOS5? Answer CentOS is based on RedHat and should use the RPM distribution, start it as follows:
Correct “nice” POSIX scheduling priority for batch processing program
I am working on a bulk image processing program which does not require user attention and need to choose a priority level for this process. The superuser is able to set values from PRI_MIN (-20) to PRI_MAX (+20) and normal users can set from 0 to PRI_MAX. The default level is zero. On Mac OS X 10.11, the man …
Dynamically-created ‘zip’ command not excluding directories properly
I’m the author of a utilty that makes compressing projects using zip a bit easier, especially when you have to compress regularly, such as for updating projects submitted to an application store (like Chrome’s Web Store). I’m attempting to make quite a few improvements, but have run into an …