Skip to content

Sqlite libsqlite3.so.0 Not Found

I’m trying to get sqlite3 to work on ubuntu linux. I first tried to download sqlite3 but was given an error about multiple versions. I then deleted libsqlite3.so.0 and another counterpart to that using gksudo natalie, which was recommended. I then reinstalled the two rpm files…I now have eight of …

Building linux binaries for multiple platforms

Help me settle a score. I have a piece of software written in C++ that’s meant to run on as many linux distributions as possible and I need to figure out a strategy that’s effective. I’m trying to ship binaries in this case not source code (might be good to know). It’s already a commer…

How to add .so file to the java.library.path in Linux

I am working with a java application which needs a .dll file in java.library.path in windows. To run same application in Linux I have the respective .so file which should be added to java.library.path in linux machine, I didnt find any easy solution for this so far I did put the .so in a folder which is alrea…

Checkpoint/restart using Core Dump in Linux

Can Checkpoint/restart be implemented using the core dump of a process? The core file contains a complete memory dump of the process, thus in theory it should be possible to restore the process to the same state it was in when the core was dumped. Answer No, this is not possible in general without special sup…

Pass parameter to an awk script file

If I want to pass a parameter to an awk script file, how can I do that ? Here I want to print the first argument passed to the script from the shell, like: Answer your hash bang defines the script is not shell script, it is an awk script. you cannot do it in bash way within your script.

Physical disk block size on POSIX using C/C++

I’m working on a high performance I/O program and I’m trying to find the best way to determine the _physical_ (and not the _logical_) byte size of a device’s disk blocks with C++. My research so far has led me to the following code snippet: The man pages says the following about st_blksize: …