清晨的工作,Scilab和Scim的闹别扭

BreakDS posted @ Tue, 07 Oct 2008 19:02:20 +0800 in Debian , 1579 readers

Scilab 5.0.2 运行缓慢
Locale的warning
罪魁祸首java
Scim无法呼出

Scilab 5.0.2 运行缓慢

关于这个问题的解决,只能归功于我的直觉。 记得很久以前听说matlab的Linux版本是java写的,但是跑起来会问题。 我自己试了,确实如此。 但是当时加了参数-nojvm就没有问题,只是失去了java提供的那个图形界面。

于是着手看scilab的问题。

Locale的warning

首先是strace它会发现一个GTK_Warning,大意是说当前的Locale设置得不支持C Library之类,其实后来发现是可以ingnore掉的,不过这个时候我使用

dpkg-reconfigure locales

改变了locale的设置。 因为在另外一台机子上跑没有这个warning,我就设置它为EN_US,这样就和原来的机子一样,代替了原来收到warning的EN_US.utf8。但是这个是有后效性的,它的确影响到了Scim.

罪魁祸首java

改变了locale仍然是缓慢无比。 CPU占用也居高不下。 难道是java的问题?? 执行

java -version
  • 查看java版本。好么...竟然是1.5的。 明明装了sun-java-6的呀。 于是赶紧修改 /etc/profile,添加:
# Java Settings
export CLASSPATH=.:/usr/lib/jvm/java-6-sun-1.6.0.07/jre/lib/rt.jar
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.07/
export PATH=/usr/lib/jvm/java-6-sun-1.6.0.07/jre/bin/:$PATH
  • 但是还没有结束。 检查Scilab的启动脚本1发现,里面仍然有更新java环境变量的语句,而且是弄到它自带的....郁闷,赶紧换掉。就参照上面的格式。

经过检验,上面的两个地方都得改才能收到效果。


Scim无法呼出

网络上的各种方法试了没有解决。 想到刚才改scilab的时候改了locale。 把locale改回来,带utf8的,就一切正常了。


1

在scilab目录下的bin/scilab

AAA said:
Fri, 31 Dec 2021 03:30:21 +0800

Oh my goodness! a great post dude. Thanks a ton However I’m experiencing trouble with ur rss . Do not know why Struggle to register for it. Is there any person getting identical rss problem? Anyone who knows kindly respond. Thnkx 안전놀이터

AAA said:
Wed, 16 Feb 2022 19:32:30 +0800

I was on Twitter looking for Neiko Tools Cordless Tools when I found a link to this blog, happy I stopped by – Cheers 토토사이트

AAA said:
Tue, 22 Feb 2022 20:00:07 +0800

I’m wondering if you have noticed how the media has changed? What once seemed like a never discussed issue has become more prevelant. It’s that time to chagnge our stance on this though. How to Become a Payment Processor

 

===========================================

 

Thanks for taking time for sharing this article, it was excellent and very informative. It’s my first time that I visit here. I found a lot of informative stuff in your article. Keep it up. Thank you. ISO credit card processing

 

==========================================

 

Aw, this became incredibly good post. Back in thinking I would like to make a note of that fit this description brings about : slacking plus total strength to earn a pretty decent article… on the flip side what could As i say… I really wait a large amount as well as in appear go basically finished. start a payment processing company

meidir said:
Tue, 04 Oct 2022 04:53:19 +0800

I like this post, enjoyed this one regards for putting up. Thinkpad


Login *


loading captcha image...
(type the code from the image)
or Ctrl+Enter