📄 00000031.htm
字号:
find yourself booting off CD-ROM to restore your system. (The Linux <BR> module is good, but not that good.) If you're using a Linux program <BR> built into a FreeBSD package, such as linux_glide, you can use the <BR> standard FreeBSD pkg_add pkgname. <BR> <BR> Manual Installations <BR> <BR> Even with FreeBSD's excellent package management, some software has to <BR> be installed the hard way, by hand. I'll use Sun's StarOffice 5.1 as <BR> an example. Rather than provide a specific set of instructions on how <BR> to install this particular application, we'll troubleshoot a typical <BR> closed-source, Linux-binary software installation. <BR> <BR> You can download StarOffice at www.stardivision.com. A full download <BR> runs about 70 megs, so you might wish to spend the $10 for a CD-ROM. <BR> Copy the file so51a_lnx_01.tar to your home directory and untar it. <BR> <BR> After decompressing, cd so51inst/bin and run ./setup. At this point, <BR> you might get a warning about /tmp being full. StarOffice is a huge <BR> office suite. If you run out of space, you will need to repoint your <BR> tmp directory. The easiest way to do this is with the environment <BR> variable $TMPDIR. Point TMPDIR at a directory with a lot of space, and <BR> try again. <BR> <BR> You'll see: <BR> <BR>#./setup <BR>./setup: Window manager didn't set icon sizes - using default. <BR>/tmp/sv001.tmp/setup.bin: error in loading shared libraries <BR>libvos517li.so: cannot open shared object file: No such file or directory <BR># <BR> <BR> This is a shared library problem, as described above. You can simply <BR> do: <BR> <BR>#LD_LIBRARY_PATH=/tmp/sv001.tmp ; export LD_LIBRARY_PATH <BR> <BR> Rerun the setup routine. This time, it will open a nice GUI window, <BR> ask you some questions, and install itself. After the install, look in <BR> "Office51/bin" under your home directory. Typing ./soffice& will bring <BR> up StarOffice. I use a simple shell script: <BR> <BR>#!/bin/sh <BR>/home/mwlucas/Office51/bin/soffice& <BR> <BR> If you are interested in server applications, you should take a look <BR> at "How to run Oracle for Linux on FreeBSD," available at: <BR> <BR><A HREF="http://www.scc.nl/~marcel/howto-oracle.html">http://www.scc.nl/~marcel/howto-oracle.html</A> <BR> <BR> Problems <BR> <BR> Any number of things can go wrong with a software install, let alone <BR> one running on a platform it wasn't built for. Some programs will <BR> require branding before you can run them. Branding a binary leaves an <BR> ELF comment that the kernel uses to choose an ABI. brandelf <BR> programname will tell you which ABI a program thinks it needs. You can <BR> use brandelf -t linux programname to manually point a binary at the <BR> Linux module. (SysV binaries do not use branding.) <BR> <BR> If the program complains about unsupported functions, check your <BR> kernel config. Do you have the POSIX and SysV options configured? <BR> Check kldstat -v to confirm the Linux module is loaded. If the above <BR> fails, your first resource should be the FreeBSD mailing list <BR> archives. Look at: <BR> <BR><A HREF="http://www.FreeBSD.org/search.html">http://www.FreeBSD.org/search.html</A> <BR> <BR> Unless you're the first person in the world to have a problem with <BR> this piece of software, you'll find an archived question about it. The <BR> "questions" and "emulation" archives are excellent places to search. <BR> <BR> If the mailing lists archives don't help, send a message to <BR> freebsd-<A HREF="mailto:questions@FreeBSD.org.">questions@FreeBSD.org.</A> Be sure to give the version of FreeBSD <BR> you have, the version of linux_base you're using, and any and all <BR> details about the program you're trying to run, including any error <BR> messages when you try to run it. If it's an obvious problem, someone <BR> will probably answer you quickly. For more difficult problems, you <BR> might be directed to the freebsd-emulation mailing list. <BR> <BR> If you find yourself using Linux emulation more and more frequently, <BR> you would find it worthwhile to subscribe to the freebsd-emulation <BR> mailing list. Email <A HREF="mailto:majordomo@FreeBSD.org">majordomo@FreeBSD.org</A> with a body of "subscribe <BR> freebsd-emulation". <BR> <BR> Conclusion <BR> <BR> FreeBSD's Linux mode gives FreeBSD users access to a wide variety of <BR> commercial software packages. I encourage you to contact any software <BR> vendor that does not offer a FreeBSD version of a desired program and <BR> let them know you would purchase a native version. Vendors don't <BR> realize that demand exists unless someone tells them. Although good <BR> for your karma, these requests won't help you listen to espn.com's <BR> daily broadcasts on your computer. Combined with the SVR4 and SCO <BR> kernel modules, the Linux module gives you access to almost the entire <BR> range of UNIX software on your FreeBSD box. n <BR> <BR> About the Author <BR> <BR> Michael Lucas is a networking and FreeBSD consultant working for the <BR> Great Lakes Technologies Group. He lives in Detroit, Michigan with his <BR> wife Liz, four gerbils, and assorted fish. He can be reached at: <BR> <A HREF="mailto:mwlucas@exceptionet.com.">mwlucas@exceptionet.com.</A> <BR> <BR> The author wishes to thank Marcel Moolenar and Steven Arlow for their <BR> assistance with this article. <BR> <BR>===================End========================== <BR>-- <BR>|======================+========================+====================| <BR>| 以无法为有法 , | 拳本无法,有法也空; | 我爱GNU/Linux, | <BR>| 以无限为有限 | 一法不立,无法不容。| 因为我爱自由! | <BR>| | | | <BR>| 截拳道宗师-李小龙 | 意拳宗师-王芗斋 | 土人 Linuxrat | <BR>|======================+========================+====================| <BR> <BR>※ 来源:·BBS 水木清华站 smth.org·[FROM: 202.112.168.253] <BR><CENTER><H1>BBS水木清华站∶精华区</H1></CENTER></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -