ubuntu-8.10

How to install a second JVM?

守給你的承諾、 提交于 2020-01-03 01:56:05
问题 I am working on a Linux Ubuntu 8.10 and I would like to install a second JVM. I am currently working with Java 1.6, but I want to install Java 1.4 and afterwards, set the 1.4 JVM as my default JVM, to work with. How could I do that? Thanks in advance! 回答1: Just install the package you want. After that you're able to switch java implementations using update-java-alternatives See Help pages for more. 回答2: With Linux, you can install multiple JVMs without conflict (unlike Windows, where the

Ubuntu rails install fails on zlib

被刻印的时光 ゝ 提交于 2019-12-17 21:26:15
问题 I've just moved over to Ubuntu 8.10 as my dev box; it's my first serious foray into Linux as a daily-use OS, and I'm having a hard time getting Rails going. I have followed a number of tutorials which all seem to work fine, but when I try and use gem install or gem update on anything, I get an error that looks like this: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8

Installing Libboost 1.38 on Ubuntu 8.10

走远了吗. 提交于 2019-12-13 03:14:43
问题 Is there a way to Install Libboost 1.38 on Ubuntu 8.10? The highest version in my repositories is 1.35. It has been suggested that there may be some repositories I could add to accomplish this, but my searches haven't yielded anything. Do I have to resort to source code? If so, what is the best way to accomplish this? Thanks 回答1: You can either Upgrade to Jaunty (Ubuntu 9.04) which has 1.37. You can even incrementally upgrade to just its boost libraries (google for apt-pinning) use a more

Produce keyboard Events key hits

谁说我不能喝 提交于 2019-12-04 13:50:18
问题 How to make a simple C program which will produce keyboard key hits. if ( condition ) { KeyPress('A'); } I am working on Ubuntu 8.10 Linux OS 回答1: Here's a simple example using libxdo (from xdotool). (Caveat: I am the xdotool author) /* File: testkey.c * * Compile with: * gcc -lxdo testkey.c * * Requires libxdo (from xdotool project) */ #include <xdo.h> int main() { xdo_t *xdo = xdo_new(NULL); xdo_keysequence(xdo, CURRENTWINDOW, "A", 0); return 0; } 回答2: There is XTestFakeKeyEvent () function

Produce keyboard Events key hits

人盡茶涼 提交于 2019-12-03 08:44:33
How to make a simple C program which will produce keyboard key hits. if ( condition ) { KeyPress('A'); } I am working on Ubuntu 8.10 Linux OS Here's a simple example using libxdo (from xdotool). (Caveat: I am the xdotool author) /* File: testkey.c * * Compile with: * gcc -lxdo testkey.c * * Requires libxdo (from xdotool project) */ #include <xdo.h> int main() { xdo_t *xdo = xdo_new(NULL); xdo_keysequence(xdo, CURRENTWINDOW, "A", 0); return 0; } There is XTestFakeKeyEvent () function from Xlib. You can USE Expect for c or C++ Programs Take a look at xsendkey . The sources are included and are

Ubuntu rails install fails on zlib

好久不见. 提交于 2019-11-28 15:14:13
I've just moved over to Ubuntu 8.10 as my dev box; it's my first serious foray into Linux as a daily-use OS, and I'm having a hard time getting Rails going. I have followed a number of tutorials which all seem to work fine, but when I try and use gem install or gem update on anything, I get an error that looks like this: /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- zlib (LoadError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb