I tried to install some modules to a new server (fedora core 18) but I’m getting this error: The module I need to install is : XML/Writer.pm because I’m getting this error: Do any of you know why, or how can I fix these errors? Answer Some OS distributions cut out pieces of the core Perl distribut…
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 create a simple sysfs class attribute in Linux kernel v3.2
I’m learning how to use sysfs in my Linux modules, but I’m having the hardest time finding current documentation on these topics. The Linux Device Drivers 3rd Edition book I’ve been using seems to be rather dated in this area unfortunately (e.g. the class_device structure appears to be compl…
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…
Calling assembly routines from C source code
I have this simple C source code : and i have this s.asm which defines the function _Sum : now , i compiled the .asm using : and compiled and linked the .c file using : this is the outcome : So what is the problem ? I’m using Ubuntu-Linux Any help would be greatly appreciated , Thanks [SOLVED] :
Unable to run compiled files – bash: ./a.out: Permission denied. (I’ve tried chmod)
I’ve compiled my C source using cc test.c, and it did generate a.out file. However when I run it I get this error – My source is not in the home directory, it is on different FAT-32 partition, so I’ve mounted the drive in which the code is using the following command – Then I compile m…
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: …