Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack …
How to set the path that a .so library will search for other .so libraries?
I have a libA.so that depends on libB.so, which is located at ../libB/ (from libA.c). I’m trying to compile things in such a way that I don’t have to set any environment variables. I have: This compiles fine. When I run a program that loads libA with dlopen I get: so libA is not finding libB at ru…
Symbols not found during linking
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: …
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