Tag: ruby

Ptcl EVO在Ubuntu 14.04中不起作用

我住在巴基斯坦的伊斯兰堡,当我在室外时,我使用Ptcl EVO和我的Windows 7并且工作正常,但是现在当我使用它与Ubuntu 14.04时,它最初工作正常但是在一段时间后它停止工作(它的光闪烁,并正确连接,但互联网不工作)。 今天我更新并升级了Ubuntu,安装了一些软件(sublime,chrome,Vim),安装了Node,Ruby和Ruby on Rails等,所以我不知道问题是否因为今天安装的东西或者什么而发生? 以下是设备ID(使用lsusb从控制台获取) Bus 002 Device 010: ID 19d2:fff1 ZTE WCDMA Technologies MSM 谢谢! 🙂 编辑:我重新安装了Ubuntu并查找了所有的更改,在安装了libindicator和libappindicator之后,3g移动宽带USB停止了工作(由ubuntu自动完成)。 这是截图

/etc/init.d/networking start – 控制进程退出并显示错误代码。 请参阅“systemctl status networking.service”

Ubuntu v.16主持digitalocean 我像本文一样为项目(ruby,Sinatra)定制Sendmail。 http://www.travisluong.com/ruby-on-rails-sending-email-with-sendmail-on-ubuntu-vps/ 我想重新加载/ etc / hosts 我调用/etc/init.d/networking stop ,然后调用/etc/init.d/networking start并获取错误 – 启动网络(通过systemctl):networking.serviceJob for networking.service失败,因为控制进程退出并显示错误代码。 有关详细信息,请参阅“systemctl status networking.service”和“journalctl -xe”。 失败! 等/主机 127.0.0.1 localhost MY-WEB-SERVER # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters ff02::3 ip6-allhosts 状态网络 systemctl status networking.service ● networking.service – […]

sudo:ruby:在ssh之后找不到命令

我正在使用ec2实例,并尝试在ssh之后在另一个实例上执行ruby脚本到该实例。 我有一个更新配置文件的ruby脚本,所以我需要以超级用户身份运行该脚本。 当我在该实例上手动运行脚本时, sudo ruby recreate-532d01c.rb ,出现的错误是 sudo: ruby: command not found 运行没有root权限的简单脚​​本,例如。 ruby file_1.rb 。 使用rvmsudo代替sudo执行带有警告的脚本, ubuntu@ip-10-0-0-111:~$ rvmsudo ruby recreate-82bb000012.rb Warning: can not check `/etc/sudoers` for `secure_path`, falling back to call via `/usr/bin/env`, this breaks rules from `/etc/sudoers`. Run: export rvmsudo_secure_path=1 to avoid the warning, put it in shell initialization file to make it […]

设置为RVM的默认Ruby版本无法被系统识别

我正在尝试让系统使用我用RVM设置的Ruby版本。 以下命令生成此输出: $ rvm use 1.9.2 –default Using /usr/share/ruby-rvm/gems/ruby-1.9.2-p180 $ rvm current ruby-1.9.2-p180 $ ruby –version ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] 这是我的PATH的内容: PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games 也: $ whereis ruby ruby: /usr/bin/ruby /usr/bin/ruby1.8 /usr/lib/ruby /usr/share/man/man1/ruby.1.gz $ whereis rvm rvm: /usr/bin/rvm /usr/share/man/man1/rvm.1.gz 我认为这是一个环境变量的问题,但我真的不知道该怎么做。 我已经尝试过rvm system ,然后rvm list和rvm current only list 1.9.2 with ruby –version listing 1.8.7 still 我也尝试将export […]

使用rvm安装后,无法识别Ruby命令

我按照本教程使用rvm安装ruby: https ://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin- 与-RVM 问题是每次登录时都无法识别ruby安装,例如,如果我尝试使用“ruby”命令执行ruby脚本,这就是我得到的: 要使它被识别,我必须运行此命令: source ~/.rvm/scripts/rvm 但每次我登录时我都要再做一次。

如何安装Ruby Ripper或其他通过GUI执行MP3的应用程序

我曾尝试使用从互联网上粘贴的代码安装ruby ripper各种时间(raring)。 每次我得到sudo apt-get install ruby​​ripper,我得到这个: E:无法找到包装rubyripper 我想安装一些东西让我翻录mp3,并修改翻录设置。 Rhythm box似乎只能扯掉一个名为ogg vorbis的东西。 我想安装一些东西让我通过gui翻录mp3。

新贵跟踪错误的过程PID – 而不是重生

我最初在StackOverflow上问过这个问题。 然后意识到这可能是一个更好的地方。 我有bluepill设置来监控我的delayed_job进程。 (Ruby On Rails应用程序) 使用Ubuntu 12.10。 我正在使用Ubuntu的upstart启动并监控bluepill服务。 我的upstart配置如下( /etc/init/bluepill.conf )。 description “Start up the bluepill service” start on runlevel [2] stop on runlevel [016] expect daemon exec sudo /home/deploy/.rvm/wrappers//bluepill load /home/deploy/websites//current/config/server/staging/delayed_job.bluepill # Restart the process if it dies with a signal # or exit code not given by the ‘normal exit’ stanza. respawn […]

Gmate安装问题

我正在关注GMate链接和Using Gedit as a Ruby IDE GMate Using Gedit as a Ruby IDE来使我的Gedit成为IDE。 但是当所有命令都运行良好时,下面的命令会给我一个错误。 kirti@kirti-Aspire-5733Z:~$ sudo apt-get install gedit-gmate [sudo] password for kirti: Reading package lists… Done Building dependency tree Reading state information… Done E: Unable to locate package gedit-gmate kirti@kirti-Aspire-5733Z:~$ 帮我解决这个问题。

安装了Ruby 1.9.2但新的gem不会在/ usr / bin中创建脚本

我以前在我的Ubuntu 10.10上使用了ruby 1.8,我通过Synaptics删除了它。 然后我也通过Synaptics安装了ruby 1.9.1(后来说它本身就是版本1.9.2)。 然后我用sudo gem install ruby-debug19 rspec安装了ruby-debug19和rspec gems 但是我无法启动rdebug或rspec ,但我可以从我的ruby脚本中调用调试器,因此调试器正在运行。 我检查了起始脚本rdebug和rspec ,然后我意识到它们仍然是ruby1.8时代的旧脚本。 换句话说,这些gem的当前1.9安装没有在任何地方创建起始脚本。 像我这样的懒惰灵魂最简单的解决方案是什么? 看起来删除重新安装ruby 1.9.2无济于事,反复安装这些gem不会创建启动脚本。

我该如何重新安装redmine?

我有一个redmine设置。 今天早上我看到我的redmine文件夹是空的,我无法访问redmine,所以我尝试使用以下方法再次安装redmine: sudo apt-get install redmine 我收到以下错误: Reading package lists… Done Building dependency tree Reading state information… Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out […]