I have a problem with a shared library (Linux) and a program that links against this library but does not find the symbols – although they are there. That’s what I have: A shared library “libetest.so” that is located in /usr/lib. When I do an it gives (beside some others) this output: …
Tag: linux
Change key binding for autocomplete in haskell-vim-now
I have installed the Vim plugin haskell-vim-now in Ubuntu 14.04 LTS and in Xubuntu 14.04 LTS. After using the plugin in Ubuntu, I could use the autocompletion with Ctrl-space. However, when I installed it in Xubuntu, the Ctrl-space key would not work. The only way I made the autocompletion work was with the k…
MySQL “Error Code: 1118. Row size too large (> 8126)”
I have two installs of MySQL. One is on my local Linux laptop and the other is on our Development Linux server. Both installs are the same version (mysql Ver 14.14 Distrib 5.6.23). When I run a create statement for a table on my local install it completes successfully. When I try to run that same create on th…
Linux Socket Bad File Descriptor
I couldn’t find a duplicate, so I decided to post. We’re getting into Sockets (beginner-level) now, and was given the code below to make the client send a simple message to the server by using send() and recv(). However, everything I have tried doesn’t seem to get rid of the error: Bad File Descriptor a…
concatenate ordered files using cat on Linux
I have files from 1 to n, which look like the following: Each file contains only one line. Now I want to concatenate them in the order from 1 to n. I tried cat sim.o500.* > out.dat. Sadly this does not work if e.g. n is larger than 9, because this concatenates then sim.o500.1 followed by sim.o500.10and not…
how to implement POSIX threads ( pthread.h ) on fedora 9
I need to use pthreads but it seems that I do not have it in my fedora and I cannot found how to install it. Thanks Answer Fedora 9 uses Linux Kernel version 2.6 and this version is fully compatible with libc 2.3.2. This libc contains the pthread.h header. Check this implementation example. And compile with:
change date/time using python in linux
I tried using date command to change the system time in debian linux: os.system(“echo passwd | “sudo date -s “Thu Aug 9 21:31:26 UTC 2012”) and I set the python file permission to 777 and also chown as root. But it does not work and says date: cannot set date: Operation not permitted. …
What is a better way to read each line in a file in linux?
Hi all, I want to read each line in a file and then make a whole url to do some thing. The above scripts worked, but what is a better way to read file line by line? Thanks. Answer This is a nice example of the useless use of cat, simply use IO redirection: The use of -r in read
Can’t compile C++ program on Ubuntu
I used OSX to program in C++, but I am new to C++ compiler on Linux. I have a program consisting two .cpp files and one .h file that are compiled and run successfully on my Mac, but get compiling errors on Ubuntu. I did install gcc and g++ compilers and build-essential, and also apt-get update and update, sea…
How to change kernel timer frequency?
I wanted to change kernel option on kernel timer frequency. So i found this, it is saying that i can change the configuration via /boot/config-‘uname -r’ (And i also found the post saying unless it builds a tickless kernel – CONFIG_NO_HZ=y i couldn’t change timer frequency but mine is …