Please assign a menu to the primary menu location under menu

Troubleshooting

Troubleshooting

Can’t install RMagick 2.13.2. Can’t find Magick-config

bundle install시 Magick-config를 찾을수 없다고 나올 경우 # gem install rmagick Building native extensions.  This could take a while… ERROR:  Error installing rmagick: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb checking for Ruby version >= 1.8.5… yes checking for gcc… yes checking for Magick-config… no Can’t install RMagick 2.13.2. Can’t find Magick-config in /home/hadoop/hive/bin:/usr/local/apache-maven-3.1.1/bin:/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/jdk/bin:/bin:/home/hadoop/2.2.0/bin:/home/hadoop/2.2.0/sbin:/root/bin *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.  Check the mkmf.log file for more details.  You may need configuration options. Provided configuration options: –with-opt-dir –without-opt-dir –with-opt-include –without-opt-include=${opt-dir}/include –with-opt-lib –without-opt-lib=${opt-dir}/lib –with-make-prog –without-make-prog –srcdir=. –curdir –ruby=/usr/bin/ruby

Ruby – /usr/bin/ruby extconf.rbmkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h

ruby에서 bundle install시 ruby.h 헤더 파일을 찾을수 없다고 나오는 경우 # bundle install Fetching gem metadata from http://rubygems.org/………..Fetching gem metadata from http://rubygems.org/..Resolving dependencies… Using daemons (1.1.9) Installing json (1.8.0)Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rbmkmf.rb can’t find header files for ruby at /usr/lib/ruby/ruby.h Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/json-1.8.0 for inspection. Results logged to /usr/lib/ruby/gems/1.8/gems/json-1.8.0/ext/json/ext/generator/gem_make.out An error occurred while installing json (1.8.0), and Bundler cannot continue. Make sure that `gem install json -v ‘1.8.0’` succeeds before bundling. ruby 개발 버전을 설치 하면 됩니다. # yum install ruby-devel rubygems # bundle install Fetching gem metadata from http://rubygems.org/……….. Fetching

munin – Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215, line 30.

Munin에서 Plugin을 실행 했을때 아래와 같은 문제를 만나볼수 있었습니다.   # tail -F /var/log/munin/munin-node.log 2013/04/19-11:17:01 # ERROR: Failed to exec. 2013/04/19-11:17:01 Service ‘example_script’ exited with status 42/0. 2013/04/19-11:17:01 Error output from example_script: 2013/04/19-11:17:01 Can’t exec “/etc/munin/plugins/example_script”: Permission denied at /usr/share/perl5/Munin/Node/Service.pm line 215, line 30. 이것은 스크립트의 실행할 사용자의 권한이 주어지지 않아서 생긴 문제였습니다.   /etc/munin/plugin-conf.d/munin-node 설정파일에 해당 스크립트를 실행할수 있는 사용자를 지정 해주면 됩니다. # nano /etc/munin/plugin-conf.d/munin-node user root

Could not load host key: /etc/ssh/ssh_host_ecdsa_key

OpenSSH에서 ecdsa_key를 찾지 못하는 경우가 있습니다. # /etc/rc.d/sshd start Starting sshd. Could not load host key: /etc/ssh/ssh_host_ecdsa_key   이 경우 ecdsa키를 생성 해주면 해결 됩니다. # ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N “”

DNS – BIND underscore hostname

DNS서버를 BIND로 구축하고 underscore (‘_’)가 있는A 레코드를 추가 했을때 bad owner name (check-names)라고 나오는 경우가 있습니다. 이것은 특수문자인  ‘_’를 사용할수 없기 때문에 생기는 문제입니다. # tail -n 50 /var/log/messages yongbok named: starting BIND 9.9.0 -t /var/named -u bind yongbok named: —————————————————- yongbok named: BIND 9 is maintained by Internet Systems Consortium, yongbok named: Inc. (ISC), a non-profit 501(c)(3) public-benefit yongbok named: corporation. Support and training for BIND 9 are yongbok named: available at https://www.isc.org/support yongbok named: —————————————————- yongbok named: command channel listening on 127.0.0.1#953 yongbok named: command channel listening on ::1#953 yongbok named: master/db-yongbok:50: hello_sydney.yongbok.net: bad owner name (check-names) yongbok

1 2