特殊:Badtitle/NS100:DialupModemHowto/FromSource:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Oneleaf留言 | 贡献
New page: {{From|https://help.ubuntu.com/community/DialupModemHowto/FromSource}} {{Languages|php5}} #pragma keywords smartlink modem winmodem linmodem networking scanmodem sl-modem intel linuxant co...
 
Wikibot留言 | 贡献
无编辑摘要
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
{{From|https://help.ubuntu.com/community/DialupModemHowto/FromSource}}
{{From|https://help.ubuntu.com/community/DialupModemHowto/FromSource}}
{{Languages|php5}}
{{Languages|UbuntuHelp:DialupModemHowto/FromSource}}
#pragma keywords smartlink modem winmodem linmodem networking scanmodem sl-modem intel linuxant conexant hsf hcf wvdial ppp
 
== If compiling from source ==
== If compiling from source ==
On your way to configuring your modem drivers, you may find out that you need to compile from source. In that case, prior to compiling, insert your Ubuntu installation CD.
On your way to configuring your modem drivers, you may find out that you need to compile from source. In that case, prior to compiling, insert your Ubuntu installation CD.
Instructions for adding the contents of the CD to your respositories list should appear on the screen as soon as the CD is inserted, if you are using Ubuntu 6.06 (Dapper Drake) or above.
Instructions for adding the contents of the CD to your respositories list should appear on the screen as soon as the CD is inserted, if you are using Ubuntu 6.06 (Dapper Drake) or above.
If no instructions appear, or you are not using the graphical environment, you can add the CD to your list of repositories manually, by running
If no instructions appear, or you are not using the graphical environment, you can add the CD to your list of repositories manually, by running
<pre><nowiki>
<pre><nowiki>
sudo apt-cdrom add
sudo apt-cdrom add
</nowiki></pre>
</nowiki></pre>
If you installed Ubuntu using the Alternate CD, or you are using a version of Ubuntu older than 6.06, the CD repository is already part of your list and you do not need to add it again.
If you installed Ubuntu using the Alternate CD, or you are using a version of Ubuntu older than 6.06, the CD repository is already part of your list and you do not need to add it again.
Now, to install the packages needed for compiling, run
Now, to install the packages needed for compiling, run
<pre><nowiki>
<pre><nowiki>
sudo apt-get install build-essential linux-headers-`uname -r`
sudo apt-get install build-essential linux-headers-`uname -r`
</nowiki></pre>
</nowiki></pre>
If you need more packages for compiling, you can find them from http://packages.ubuntu.com - always check that your system  satisfies the dependencies before installing a new package using this website. The website will list you a number of dependencies for each package. Make sure those dependencies are installed before installing a new package. You can use Synaptic or equivalent to check for installed packages.
If you need more packages for compiling, you can find them from http://packages.ubuntu.com - always check that your system  satisfies the dependencies before installing a new package using this website. The website will list you a number of dependencies for each package. Make sure those dependencies are installed before installing a new package. You can use Synaptic or equivalent to check for installed packages.
== Installing GCC 3.4 ==
== Installing GCC 3.4 ==
In some instances, you will need the packages for version 3.4 of the GCC compiler, which, unfortunately, are not present on the installation CD, and will have to be obtained from another machine.
In some instances, you will need the packages for version 3.4 of the GCC compiler, which, unfortunately, are not present on the installation CD, and will have to be obtained from another machine.
The appropriate files, at the time of writing, can be found here:
The appropriate files, at the time of writing, can be found here:
** http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
* http://ftp.interlegis.gov.br/pub/ubuntu/archive/pool/main/g/gcc-3.4/gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
** http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/cpp-3.4_3.4.4-6ubuntu8_i386.deb
* http://ftp.interlegis.gov.br/pub/ubuntu/archive/pool/main/g/gcc-3.4/cpp-3.4_3.4.4-6ubuntu8_i386.deb
** http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/gcc-3.4_3.4.4-6ubuntu8_i386.deb
* http://ftp.interlegis.gov.br/pub/ubuntu/archive/pool/main/g/gcc-3.4/gcc-3.4_3.4.4-6ubuntu8_i386.deb
** http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.4/g++-3.4_3.4.4-6ubuntu8_i386.deb
* http://ftp.interlegis.gov.br/pub/ubuntu/archive/pool/main/g/gcc-3.4/g++-3.4_3.4.4-6ubuntu8_i386.deb
 
Assuming you have downloaded the files, and know where they are, you
Assuming you have downloaded the files, and know where they are, you
can install them using `dpkg`:
can install them using `dpkg`:
<pre><nowiki>
<pre><nowiki>
  sudo dpkg -i gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i cpp-3.4_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i cpp-3.4_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i gcc-3.4_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i gcc-3.4_3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i g++-3.4-3.4.4-6ubuntu8_i386.deb
  sudo dpkg -i g++-3.4_3.4.4-6ubuntu8_i386.deb
</nowiki></pre>
</nowiki></pre>
 
The order is important.
The order is important.
[[UbuntuHelp:DialupModemHowto|Go|back to the main wiki page]]
 
[https://help.ubuntu.com/community/DialupModemHowto Go back to the main wiki page]


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2008年10月19日 (日) 04:46的最新版本

{{#ifexist: :DialupModemHowto/FromSource/zh | | {{#ifexist: DialupModemHowto/FromSource/zh | | {{#ifeq: {{#titleparts:DialupModemHowto/FromSource|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DialupModemHowto/FromSource|1|-1|}} | zh | | }}

If compiling from source

On your way to configuring your modem drivers, you may find out that you need to compile from source. In that case, prior to compiling, insert your Ubuntu installation CD. Instructions for adding the contents of the CD to your respositories list should appear on the screen as soon as the CD is inserted, if you are using Ubuntu 6.06 (Dapper Drake) or above. If no instructions appear, or you are not using the graphical environment, you can add the CD to your list of repositories manually, by running

sudo apt-cdrom add

If you installed Ubuntu using the Alternate CD, or you are using a version of Ubuntu older than 6.06, the CD repository is already part of your list and you do not need to add it again. Now, to install the packages needed for compiling, run

sudo apt-get install build-essential linux-headers-`uname -r`

If you need more packages for compiling, you can find them from http://packages.ubuntu.com - always check that your system satisfies the dependencies before installing a new package using this website. The website will list you a number of dependencies for each package. Make sure those dependencies are installed before installing a new package. You can use Synaptic or equivalent to check for installed packages.

Installing GCC 3.4

In some instances, you will need the packages for version 3.4 of the GCC compiler, which, unfortunately, are not present on the installation CD, and will have to be obtained from another machine. The appropriate files, at the time of writing, can be found here:

Assuming you have downloaded the files, and know where they are, you can install them using `dpkg`:

 sudo dpkg -i gcc-3.4-base_3.4.4-6ubuntu8_i386.deb
 sudo dpkg -i cpp-3.4_3.4.4-6ubuntu8_i386.deb
 sudo dpkg -i gcc-3.4_3.4.4-6ubuntu8_i386.deb
 sudo dpkg -i g++-3.4_3.4.4-6ubuntu8_i386.deb

The order is important. Go|back to the main wiki page