I’m building a linux installer for a Java application, and I end up with an install.jar and a setup.sh that I put in a zip file using ant. The idea is the user unzips the zip file and then runs setup.sh but the trouble is that they always need to chmod setup.sh first to give themselves execute permissio…
Tag: linux
why am i not able to declare sigset_t with std=c99?
If i compile the below program with std=c99, i get an error, but the program compiles fine without the c99 flag. Why? Answer Because sigset_t is not part of <signal.h> in standard C and you requested strict standards compatibility with -std=c99. That is, a strictly standard C program can do: and expect …
Writing to eventfd from kernel module
I have created an eventfd instance in a userspace program using eventfd(). Is there a way in which I can pass some reference (a pointer to its struct or pid+fd pair) to this created instance of eventfd to a kernel module so that it can update the counter value? Here is what I want to do: I am developing a
OCaml Compile Error: /usr/bin/ld: cannot find -lstr
I am trying to compile the source code of MEGAM Ocaml library on an Ubuntu 64 machine. I have OCaml installed (v 3.12.1), using sudo apt-get install ocaml. I am having an issue when running the “make” command in the terminal on the unzipped source code, with OCaml returning the error: The makefile…
ToyVpn: unable to settup vpn server and connecting to it also no rule is appearing the nat table
I am trying to setup VPN server on my PC. I gave commands which are given in ToyVpnServer file but after giving the last command terminal looks stuck, and from the Android phone I used ToyVpn to connect to it but it is not connecting… The commands are given below: In ToyVpnClient I gave IP address of my…
GCC 4.7.2 requires ppl?
I’m trying to configure GCC 4.7.2, but it’s failing with configure: error: Unable to find a usable PPL I’ve looked in GCC prerequisites page and PPL isn’t mentioned anywhere. I’m using CLooG 0.17.0, which uses ISL, and as such no longer requires PPL (as far as I can tell) Is ther…
Quadruple precision in G++ 4.6.3 Linux using quadmath
I’ve tried to execute the code with this command But I got the error: The version is: How can I fix the problem? Answer I see the same behaviour: One workaround is to include the header using this pattern instead: after which:
how can i use regex with locate command in linux
I want to use the locate command with regex but i am not able to use it. I want to find pip file which is in /usr folder. i am trying this locate -r “/usr/*pip” Answer To use globbing characters in your query you shouldn’t specify regex (as you do with -r option), so just do: From the man pa…
Tracking php process on framework
I have a php framework is running on linux machine basicly every requests redirect to index.php by .htaccess One of my php started to run %100 CPU i want to track which progress is that but when i check process with ps aux | grep 23791 As normal, request redirect to index.php.But i have to find which request …
Non-greedy repeat in gnu regular expression
I’m writing a network related program in linux. the program is in kernel space and not user space. All I need in this program is a regular expression library that supports all gnu regex library features plus non-greedy repeat. Is there any such library that has those features and also I can compile and …