标签: ruby

在 64 位 CentOS 上安装 Mysql Ruby gem

我在 64 位 CentOS 机器上安装 mysql ruby​​ gem 时遇到问题。

[jacekb@vitaidealn ~]$ uname -a
Linux vitaidealn.local 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)

安装了 Mysql 和 mysql-devel 包。Mysql_config 提供以下路径:

Usage: /usr/lib64/mysql/mysql_config [OPTIONS]
Options:
    --cflags         [-I/usr/include/mysql -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fno-strict-aliasing -fwrapv]
    --include        [-I/usr/include/mysql]
    --libs           [-L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -L/usr/lib64 -lssl -lcrypto]
    --libs_r         [-L/usr/lib64/mysql -lmysqlclient_r -lz -lpthread -lcrypt -lnsl -lm -lpthread -L/usr/lib64 -lssl -lcrypto]
    --socket         [/var/lib/mysql/mysql.sock]
    --port …
Run Code Online (Sandbox Code Playgroud)

mysql 64-bit centos ruby rubygems

1
推荐指数
1
解决办法
9168
查看次数

编译软件时可以采取哪些步骤来确保健全的构建环境?

我在 CentOS 机器上编译一个软件时遇到了困难,下面列出的问题是具体的,但我希望由此得出的正确方法可以应用于类似的问题,因为这似乎不是这个软件特有的问题。不过进入正题...

在 CentOS 5.4 上构建标准化虚拟机时,我一直遇到编译问题,并且我对 a)为什么会发生此错误以及 b)如何修复它一无所知,并希望其他人也偶然发现了这个问题,我希望有人可以帮助我在这里找到解决方案。

当我尝试运行安装程序时,我在尝试编译 Ruby Enterprise 时遇到configure: error: newly created file is older than distributed files!错误,如下所示,并且论坛上提供的解决方案(检查齿,并触摸文件以更新与它们相关的时间)不会似乎没有在这里帮忙。

我可以采取哪些步骤来找出此问题的原因?

[vagrant@vagrant-centos-5 ruby-enterprise-1.8.7-2009.10]$ sudo ./installer
Welcome to the Ruby Enterprise Edition installer
This installer will help you install Ruby Enterprise Edition 1.8.7-2009.10.
Don't worry, none of your system files will be touched if you don't want them
to, so there is no risk that things will screw up.

You can expect this from the installation process: …
Run Code Online (Sandbox Code Playgroud)

bash centos ruby

1
推荐指数
1
解决办法
9237
查看次数

在 nginx 中使用 UNIX 套接字

我想澄清一些关于使用 nginx 代理通过瘦服务器集群 ( http://code.macournoyer.com/thin/ )代理请求的疑问。我读过很多关于使用 UNIX 套接字而不是 TCP 连接的博客文章,我唯一的疑问是多服务器配置,其中集群分布在多台机器上,代理充当前端。如何共享 UNIX 套接字?我应该共享包含 .sock 文件的目录还是我遗漏了什么?你们如何处理这种部署?

ps hhttp://macournoyer.wordpress.com/2008/01/26/get-intimate-with-your-load-balancer-tonight/

unix nginx ruby socket thin

1
推荐指数
1
解决办法
1690
查看次数

无法设置 postgres 用户密码

尝试使用以下指南在 CentOS 6.5 上使用 Ruby on Rails 和 Nginx 安装 PostgreSQL:http : //karolgalanciak.com/blog/2013/07/19/centos-6-4-server-setup-with-ruby-on- rails-nginx-and-postgresql/

安装后我去配置用户,所以发出命令sudo su postgresthen psql。当我这样做时,我收到以下错误:

could not change directory to "/root": Permission denied
psql (9.3.4)
Run Code Online (Sandbox Code Playgroud)

忽略这一点,我发出了命令:

alter user postgres with password 'postgres-user-password';
Run Code Online (Sandbox Code Playgroud)

然后我去将 auth 方法更改为 md5 dy 做:

sudo vi /var/lib/pgsql/9.3/data/pg_hba.conf
Run Code Online (Sandbox Code Playgroud)

当我这样做时,我会看到提示:

[sudo] password for postgres:
Run Code Online (Sandbox Code Playgroud)

无论我输入什么密码,Sorry, try again.即使密码正是我刚刚设置的密码,我也会被告知。

尝试按照 user716468 这篇文章中的说明进行操作,但没有成功: 新安装后 postgres 的默认超级用户用户名/密码是什么?

当我这样做时,sudo -u postgres psql postgres我被告知:

postgres is not in the sudoers file.  This incident …
Run Code Online (Sandbox Code Playgroud)

postgresql centos ruby centos6

0
推荐指数
1
解决办法
8260
查看次数

Ruby/Chef include_recipe 并知道父文件中的变量?

我正在尝试在包含的文件中使用局部变量。我收到未定义的错误。我不确定有什么方法可以做到这一点,是吗?我有一个配方文件夹:

recipes/
    development.rb
    testing.rb
    config.rb
Run Code Online (Sandbox Code Playgroud)

发展.rb

username = "vagrant"
static = []
django = ["project1", "project2"]

include_recipe "server::config"   # <-- Trying to use static and django in there.
Run Code Online (Sandbox Code Playgroud)

配置文件

static.each do |vhost|  #  <-- How do I get the "static" var in here?
    ...
end

django.each do |vhost|  #  <-- How do I get the "django" var in here?
    ...
end
Run Code Online (Sandbox Code Playgroud)

ruby chef chef-solo

0
推荐指数
1
解决办法
1万
查看次数

我可以安全地卸载 Ruby 吗?

我希望删除非关键包以限制潜在安全漏洞的暴露。

我从不使用 Ruby。

删除 Ruby 会增加安全性还是会破坏系统的其他部分?

security linux ruby

-2
推荐指数
1
解决办法
3053
查看次数

标签 统计

ruby ×6

centos ×3

64-bit ×1

bash ×1

centos6 ×1

chef ×1

chef-solo ×1

linux ×1

mysql ×1

nginx ×1

postgresql ×1

rubygems ×1

security ×1

socket ×1

thin ×1

unix ×1