Menu
  • HOME
  • TAGS

Compiler can't find libxml/parser.h

linux,include,debian,libxml2,suse

Try to compile with explicite inclusion where the parser.h file is, i.e. smth like this g++ -I/usr/include/libxml2/ Following environment variables can also be used for lookup of header files CPATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH OBJC_INCLUDE_PATH Find more information here ...

How do I sort a file after a certain row in bash?

linux,bash,shell,scripting,suse

You can use: head -n 2 file && tail -n +3 file | sort Names Last_Name_Initial --- Alex G Anderson S Cain V Chris W Jon J Nick D It does the job as follows: Uses head -n 2 to get first 2 header lines Used tail -n +3 to...

Unable to install pip on suse

python,virtual-machine,pip,suse

It looks like pip was unstalled by a regular user, so it was installed under the user's homedir, thus needs to be explicitly added to the path. On openSUSE I'd suggest installing it using YaST (as root) and it'll end up in /usr/bin/pip, shareable by all users. Here's how it...

Java Development in OpenSUSE

java,linux,opensuse,suse

We had a similar scenario using OpenSUSE and SLES. Most of the time it was no problem but sometimes we had strange errors resulting from different Java VMs (HotSpot on OpenSUSE and IBM J9 on SLES). You should make sure to use the same VM on both machines, not just...

How do I install anacron?

linux,virtual-machine,crontab,suse

So for anyone who wants to know. I had to manually wget the rpm from http://ftp.uni-erlangen.de/opensuse/distribution/12.1/repo/oss/suse/i586/ for cronie-anacron to install it on my machine so that sudo zypper install cronie-anacron works. ...

gcc g++ 4.7 install on suse never found the "rpmlib(PayloadIsLzma)

opensuse,suse,gcc4.9,g++-4.7

wget ftp://mirrors.kernel.org/gnu/gcc/gcc-4.9.0/gcc-4.9.0.tar.gz cd gcc-4.9.0 ./contrib/download_prerequisites cd .. cd gcc-build-4.9.0 ../gcc-4.9.0/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib make -j4 (wait for 40 min) make install ...

How to check if a row from a text file exists in another text file using awk

linux,bash,awk,scripting,suse

Extending your answer: $ cat script.awk FNR < 2 { next } # skips first two lines FNR == NR { for (i = 2; i <= NF; i++) { a[i,$1] = $i } b[$1]; next; } ($1 in b) { # check if row in file2 existed in file1...

I want to pipe an output to multiple files in bash

linux,bash,awk,suse,tee

Use awk -v name=value option to pass shell variables to awk: num1=2 num2=4 awk -v n1=$num1 -v n2=$num2 'BEGIN {if (n1 == n2) print "hello"; else print "Goodbye"}' | tee file1.txt To redirect output from awk itself: awk -v n1=$num1 -v n2=$num2 'BEGIN { if (n1 == n2) print "hello";...

install gcc 4.9 under suse10, “checking whether to enable maintainer-specific portions of Makefiles… no”

c++,gcc,opensuse,suse,gcc4

As a comment already mentioned, there is no error. The next step is to actually start building the compiler, and then install it. E.g. something like # How many cpu's to use NCPUS=4 make -j $NCPUS && make install Note that as you haven't specified a prefix for your configure...

Select Teamcity Linux Agent via System Properties

linux,teamcity,redhat,agent,suse

The build agent configuration file <TeamCity Agent Home>/conf/buildagent.properties gives you the ability to specify properties that can participate in the Agent requirements expressions. You'll need to do a little extra work to get it set up, but it will give you what you're looking for....

How do I use regex to get replace certain characters in bash?

linux,bash,shell,scripting,suse

You have syntax issue in BASH array handling. Try this: files=() files+=(/server/1.0/hostname/filename.xml) files+=(/server/1.0/hostname/another_file.xml) for f in "${files[@]}"; do cat "$f" 2>/dev/null done ...