How to solve angualr cli auto change recompiling failed issue

The reason is caused by the too small number of max_user_watches in system.  a temp solution is to:

 echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches

But this will lose it after reboot so you can change system setting of linux in this way:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Advertisements

How to solve the disk full issue in Linux quickly?

Disk FULL?

Find disk size

df -h

find which files are too big in GB or in MB

cd /
du -h | group '[0-9\.]\+G'

or

du -h | group '[0-9\.]\+M'

Then remove unneeded big files.

Clean the dustbin too!

rm -rf ~/.local/share/Trash/files

 

Some lib issues when run 32 bit bin in a 64 bit CentOS

***** Issue:

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

TODO:

Fedora or newer Red Hat, CentOS:

 sudo dnf install glibc.i686

Older RHEL, CentOS:

 sudo yum install glibc.i686

***** Issue:

error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

TODO:

sudo yum install libstdc++.so.6

 

***** Issue:

Error: Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:………………..

。。。。。。。。。。。。。。。。。。。。。

Protected multilib versions: libstdc++-4.8.5-16.el7.i686 != libstdc++-4.8.5-11.el7.x86_64

TODO:

sudo yum update
sudo yum update rdma-core.x86_64

***** Issue:

error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

TODO:

sudo yum install zlib.i686