1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8" />
5 <title>Platform Details: Linux
</title>
6 <link href=
"stylesheet.css" type=
"text/css" rel=
"stylesheet"></link>
12 <a href=
"../README.html">Back to README
</a>
15 <h1>Platform Details: Linux
</h1>
18 Although Native Client modules are platform independent,
19 the instructions for installing and building Native Client
20 differ a bit between platforms.
21 This page has details about the Linux environment.
25 For instructions on installing and using Native Client,
26 see
<a href=
"getting_started.html">Getting Started
</a>.
28 such as
<a href=
"building.html">Building Native Client
</a>,
29 link to this page as needed.
37 <li><a href=
"#testedconfigs">Tested configurations
</a> </li>
38 <li> <a href=
"#run">Running on Linux
</a>
40 <li><a href=
"#run-python">Getting Python
</a> </li>
41 <li><a href=
"#run-pythonpath">Checking the Python path
</a> </li>
42 <li><a href=
"#run-64bit">64-bit Linux:
32-bit vs.
64-bit browsers
</a>
45 <li> <a href=
"#dev">Developing on Linux
</a>
47 <li><a href=
"#dev-env">Setting up your development environment
</a></li>
48 <li><a href=
"#dev-64bit">64-bit Linux: prep script
</a></li>
52 <h2> <a name=
"testedconfigs" id=
"testedconfigs"> </a> Tested configurations
</h2>
54 Native Client has been tested with the following Linux configurations:
60 <li> Ubuntu
8.04 <!-- and soon 8.10 --> (Hardy Heron):
32-bit and
64-bit
</li>
74 <h2><a name=
"run" id=
"run"> </a> Running on Linux
</h2>
76 <h3><a name=
"run-python" id=
"run-python"> </a> Getting Python
</h3>
79 On Debian-based distributions such as Ubuntu,
80 you can use the following command to get Python
2.4:
83 <pre class=
"platform-linux">
84 <kbd>sudo apt-get install python2.4
</kbd>
88 Or use Synaptic (
<code>sudo synaptic
</code>)
89 for a friendlier interface to APT.
93 You can also download Python from
94 <a href=
"http://www.python.org/download/">http://www.python.org/download/
</a>.
97 <h3><a name=
"run-pythonpath" id=
"run-pythonpath"> </a> Checking the Python path
</h3>
100 The path to
<code>python
</code> must have
<b>no spaces
</b>.
101 You can use the
<code>which
</code> command
106 $
<kbd>which python
</kbd>
110 <h3><a name=
"run-64bit" id=
"run-64bit"> </a> 64-bit Linux:
32-bit vs.
64-bit browsers
</h3>
113 Native Client works best in
32-bit browsers.
114 For instructions on using a
32-bit browser on a
64-bit Linux system, search for
115 [
<a href=
"http://www.google.com/search?&q=linux+32-bit+64-bit+browser">linux
32-bit
64-bit browser
</a>].
119 An alternative is to use
120 <a href=
"http://gwenole.beauchesne.info/en/projects/nspluginwrapper">NSPluginWrapper
</a>
121 (version
1.1.2 or newer),
122 which makes the Native Client plug-in work
124 Here's an example of the command you'd use:
128 <kbd>/usr/bin/nspluginwrapper -i ~/.mozilla/plugins/libnpGoogleNaClPlugin.so
</kbd>
132 You might have to rerun that command
133 when you install a new version of the plug-in.
137 <strong>Note:
</strong>
138 Avoid NSPluginWrapper if you need to run modules that depend on NPAPI.
139 The performance impact of NSPluginWrapper's NPAPI forwarding can be huge.
142 <h2><a name=
"dev"> </a> Developing on Linux
</h2>
144 <h3><a name=
"dev-env" id=
"dev-env"> </a> Setting up your development environment
</h3>
147 If you're using a
32-bit system,
148 you shouldn't have to do anything to set up your environment,
149 thanks to the software that comes with
154 If you're using a
64-bit system,
155 you need to run a prep script.
158 <h3><a name=
"dev-64bit" id=
"dev-64bit"> </a> 64-bit Linux: prep script
</h3>
161 To build on
64-bit Linux, you first need to run the prep script.
163 every time you download a new version of Native Client.
164 (You could get away with running the script just once,
165 but if the script changes,
166 you should run it again.)
167 Here's how to run the script:
170 <pre class=
"platform-linux">
171 <kbd>cd
<em>install_dir
</em>/nacl/googleclient/native_client/tools
</kbd>
172 <kbd>./linux.x86_64.prep.sh
</kbd>
177 The script is Ubuntu-specific
—
178 using
<code>apt-get
</code> and Ubuntu file locations, for example.
180 if you have another distribution of Linux.
187 <a href=
"http://code.google.com/policies.html#restrictions">noted
</a>,
188 the content of this page is licensed under a
189 <a href=
"http://creativecommons.org/licenses/by/2.5/">Creative Commons
190 Attribution
2.5 license
</a>.