[root@FSWWW ss]# vim /opt/BitDefender-scanner/etc/bdscan.conf
Tuesday, October 30, 2012
Sunday, October 28, 2012
Saturday, October 27, 2012
Tuesday, October 23, 2012
is missing psych (for YAML output).
[root@CentOS63Empty ~]# gem -v
/usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
solution:
1, download yaml
[root@centos63 yaml-0.1.4]# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
2, compile and install
tar zxvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
sudo ./configure
sudo make
sudo make install
/usr/local/rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
solution:
1, download yaml
[root@centos63 yaml-0.1.4]# wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
2, compile and install
tar zxvf yaml-0.1.4.tar.gz
cd yaml-0.1.4
sudo ./configure
sudo make
sudo make install
centos 6 epel and yum install git
CentOS 6:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-7.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
Enable the remi repository
sudo vim /etc/yum.repos.d/remi.repo
....
enabled=1
....
You may need do yum clean all if you have error:
"Requires: libcurl.so.3 "
Then do:
yum install git
Monday, October 22, 2012
ruby daemon debug
issue: use start cannot start daemon and no error log
[root@FSWWW uploadfile]# ./upload_files_control.rb start
solution:
try to use run
[root@FSWWW uploadfile]# ./upload_files_control.rb run
upload_files.rb: process with pid 22303 started.
/opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `initialize': No such file or
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `open'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `initialize'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:101:in `new'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:101
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/controller.rb
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons.rb:147:in `ru
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/cmdline.rb:10
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/cmdline.rb:10
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons.rb:146:in `ru
from ./upload_files_control.rb:16
[root@FSWWW uploadfile]# ./upload_files_control.rb start
solution:
try to use run
[root@FSWWW uploadfile]# ./upload_files_control.rb run
upload_files.rb: process with pid 22303 started.
/opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `initialize': No such file or
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `open'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:16:in `initialize'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:101:in `new'
from /opt/FS_QPID/PDF/uploadfile/upload_files.rb:101
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/application.r
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/controller.rb
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons.rb:147:in `ru
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/cmdline.rb:10
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons/cmdline.rb:10
from /usr/lib/ruby/gems/1.8/gems/daemons-1.1.9/lib/daemons.rb:146:in `ru
from ./upload_files_control.rb:16
Wednesday, October 3, 2012
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
run ruby qpid error:
ruby code
================================================
#!/usr/bin/env ruby
require "rubygems"
require "qpid"
require "socket"
conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
conn.start(10)
#ssn = conn.session("qpid_consumer")
===================================================
error:
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
Solution:
[cg@FSWWW ruby]$ sudo yum install ruby-qpid
ruby code
================================================
#!/usr/bin/env ruby
require "rubygems"
require "qpid"
require "socket"
conn = Qpid::Connection.new(TCPSocket.new("localhost", 5672))
conn.start(10)
#ssn = conn.session("qpid_consumer")
===================================================
error:
./consumer.rb:7: uninitialized constant Qpid::Connection (NameError)
Solution:
[cg@FSWWW ruby]$ sudo yum install ruby-qpid
install qpid in ubuntu 12
apt-get install qpidd qpid-tools qpid-doc qpid-client python- qpid-extras-
qmf python-qpid python-cqpid
Subscribe to:
Posts (Atom)
-
Step 1, New a project rails new demo Step 2, Update Gemfile add paperclip, mysql2 gem, enable JavaScript runtime gem 'mysql2' ...
-
I used 7z to zip this file under Windows, try to unzip it under linux [ang@walker temp]$ gunzip 2011.sdf.zip gunzip: 2011.sdf.zip: unkno...
-
When trying to access transmission from web-browswer i got the message : 403: Forbidden Unauthorized IP Address. Either disable the IP ad...