您的当前位置:首页正文

在新买的华硕笔记本电脑安装linux手记

来源:化拓教育网


在新买的华硕I3笔记本电脑安装linux手记

硬件配置:华硕(ASUS)A42EI37JV-SL i3-370M 2G 320G NVIDIA GT335 1G独显

安装系统 Ubuntu 10.04 32bit

应用程序 Cadence IC5141_U6

Mentor Calibre 2008

0. Clean install of Ubuntu Desktop (这步我没有执行)

1. Install additional packages necessary for Cadence.

Maybe some of these packages are already installed on your system, but to be sure try to install all of them (of course, all of these could be installed in one go):

Code:

代码:

sudo apt-get install libelf1

sudo apt-get install ksh

sudo apt-get install nscd

sudo apt-get install policykit

sudo apt-get install ureadahead

sudo apt-get install csh

新装的Ubuntu有些无法执行apt-get,需要在重新配置apt-get的网络。

2. Install libstdc++2.10-glibc2.2 package.

Unfortunately, this package is absent in recent Ubuntu versions, so download it from Ubuntu Dapper repository:

http://packages.ubuntu.com/dapper/libstdc++2.10-glibc2.2and install it:

Glibc 2.2是支持32位系统的,暂时没有在64位系统尝试安装。估计是无法安装的。

Code:

代码:

sudo dpkg -i libstdc++2.10-glibc2.2_2.95.4-24_i386.deb

3. Make some necessary links

Code:

代码:

sudo ln -s /usr/bin/awk /bin/awk

sudo ln -s /usr/bin/firefox /usr/bin/netscape

sudo ln -s /usr/lib/libstdc++-3-libc6.2-2-2.10.0.so /usr/lib/libstdc++-libc6.1-1.so.2

4. Install en_US locale (Ubuntu uses UTF8 by default):

Code:

代码:

sudo locale-gen en_US

5. Probably you will need to make some changes in your xorg configuration:(这步我没有操作,好像不需要)

Add following strings into /etc/X11/xorg.conf

Code:

代码:

Section \"Extensions\"

Option \"Composite\" \"Disable\"

EndSection

(if you do not have /etc/X11/xorg.conf either it is not necessary for your graphics card, or just create this file and add above lines to it)

Reconfigure your xserver:

Code:

代码:

sudo dpkg-reconfigure -phigh xserver-xorg

and restart session (NOTE: it will restart your current session!):

Code:

代码:

sudo /etc/init.d/gdm restart

6. Install Cadence IC5141, IC610, Assura, MMSIM61 etc.

在Ubuntu环境下,IC5141是无法正常安装的,必须将在其它机器上已经安装完成的软件打包copy过来。

这样即可直接使用。

7. In order to use cdsdoc you will have to make some changes in Cadence itself:

a) Locate all instances of libgcc_s.so and libgcc_s.so.1 in Cadence hierarchy (they will be located in PACKAGENAME/tools/lib/ or

PACKAGENAME/linux/tools/lib/ , where PACKAGENAME is mmsim61 or assura or ic610 or ic5141 whatsoever) and rename all of them to *.old, e.g.

Code:

代码:

mv mmsim61/tools/lib/libgcc_s.so mmsim61/tools/lib/libgcc_s.so.old

mv mmsim61/tools/lib/libgcc_s.so.1 mmsim61/tools/lib/libgcc_s.so.1.old

It is very important that you will rename all instances of libgcc_s.so and libgcc_s.so.1 that are in Cadence hierarchy but leave /lib/libgcc_s.so.1 intact.(这步非常重要)

b) Locate all instances of cdsdoc and obServer files (they will reside in PACKAGENAME/tools/bin/ or PACKAGENAME/tools/bin/ , where PACKAGENAME is mmsim61 or assura or ic610 or ic5141 whatsoever) and open them in the text editor (e.g. nano) and make the following changes:

Code:

代码:

#Standard x86 systems

# LD_ASSUME_KERNEL=2.2.5

LD_ASSUME_KERNEL=2.6.31

export LD_ASSUME_KERNEL

Instead of 2.2.5 you need to write your own kernel version. Current version of your kernel you could find using

Code:

代码:

uname -r

You'll get something like

Code:

代码:

2.6.31-18-generic

You need to use first three numbers as shown above.

If there is no such a section in obServer file, just leave it intact.

It is important that you will change cdsdoc (and obServer) that are in your PATH, but you'd better change all of them just in case.

8.在运行calibre的时候,报一个错误类似与 “libstdc++.so.5”

只需要将libstdc++.so.5 copy到/usr/lib 目录下即可

sudo cp /home/peian/Documents/libstdc++.so.5 /usr/lib

That's it. At least for me - everything works fine on my Ubuntu 9.10 386 Desktops. If you'll find that I've forgot something, and you are not able to run Candence on Ubuntu after you make all these changes, let's try to understand what is going wrong together.

因篇幅问题不能全部显示,请点此查看更多更全内容