Skip to content

Optimal way to install clang locally when GCC is outdated

I need to use tools that depend on clang on a Unix machine I remote onto at work. Anything I install is locally installed onto ~/local. I do not have root permissions. /usr is pretty outdated, with gcc being at version 4.4.7. clang requires gcc 4.7+ I read on linux from scratch that a gcc 6.1 installation req…

Installing libxcb – No package ‘xcb-proto’ found

I’m attempting to install Xorg on linux (CentOS 6.6) by following “Beyond Linux From Scratch”(http://www.linuxfromscratch.org/blfs/view/cvs/x/xorg7.html), and had an issue while installing libxcb-1.12 with: where: And I got the error: I’ve already installed below by following the instr…

How to suppress npm WARN deprecated messages in bash

I have several version of node.js installed in Linux Mint 18.0. I manage them using nvm. Because of a project dependency, I need to have version 0.10 as the default version (nvm use 0.10). As a result of this, every time I start my terminal, I get the following output: How do I suppress these messages? Answer…

“cat a | cat b” ignoring contents of a

The formal definition of pipe states that the STDOUT of the left file will be immediately piped to the STDIN of the right file.I have two files, hello.txt and human.txt. cat hello.txt returns Hello and cat human.txt returns I am human.Now if I do cat hello.txt | cat human.txt, shouldn’t that return Hell…

Executing several commands at once [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 6 years ago. Improve this question I am trying to write something in Perl (but I’m also happy with Python or PHP to do th…

Find out the shell which was used to run the process in linux?

I recently got stuck in a situation where I need to find out the name of the shell for a list of process (or for a single process, using pid). Is there a way we can find it out (preferably using ps and grep command). Answer Since you know that the processes have been started from a shell, you just