LinuxÒÁµéÔ°ÂÛ̳'s Archiver

forget147 ·¢±íÓÚ 2008-4-25 19:49

ÎÊÒ»ÏÂÓйØubuntuµÄÎÊÌâ

ÎÒ×°µÄÊÇubuntu 7.04£¬±àÒë³öÏÖÏÂÃæµÄ´íÎó£¬ÊDz»ÊÇÕÒ²»µ½gcc£¬ÎÒÓÖ²»ÄÜÉÏÍø£¬Ë­·¢ÎÒ¸ögccÈí¼þ°ü¡£Ð»Ð»£¡
rainson@rainson-desktop:~$ g++ -o new211 md5.cpp main.cpp
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
Make sure you have the 'universe' component enabled
bash: g++: command not found
»¹ÓÐÒ»¸öÎÊÌâ¾ÍÊÇ×°ºÃϵͳºó£¬Ö»Óпª¹Ø»úÓÐÉùÒô£¬ÆäËûûÉùÒô¡£ÎªÊ²Ã´£¿ÎÒµÄÉù¿¨Îª£¨ÒôƵ¿ØÖÆÐ¾Æ¬ Intel 82801G (ICH7 Family) High Definition Audio£©£¬Ë­ÓÐËüµÄlinuxÇý¶¯³ÌÐò£¬»¹Óа²×°·½·¨¡£Ð»Ð»£¡£¡

[[i] ±¾Ìû×îºóÓÉ forget147 ÓÚ 2008-4-25 20:15 ±à¼­ [/i]]

roofers ·¢±íÓÚ 2008-4-26 03:57

[url]http://ftp.gnu.org/[/url]
Õâ¸öftp·þÎñÆ÷µØÖ·ÏµÄÏàӦλÖÃÄÜÕÒµ½gcc£¬µ«ÊÇmsÄãÔÚ±àÒëÒ»¸öc++³ÌÐò£¬ºÃÏñʹÓÃgcc¾Í¿ÉÒÔÁË¡£
ÁíÍâubuntuϵͳµÄaptϵͳµÄϵÁаü¹¤¾ß·Ç³£ºÃÓ㬽¨ÒéÊìÁ·Ê¹ÓÃÀ´°²×°×Ô¼ºÏëÒªµÄÈí¼þ»òÕß°ü¡£

bwb ·¢±íÓÚ 2008-4-26 10:10

Â¥Ö÷µÄÎÊÌâÊÇÉϲ»ÁËÍø£¬ÄÇÑùÍæubuntuºÜÍ´¿à£¬²»Èç×°ÄÇЩ¼¸ÕŹâÅ̵ÄϵͳÈçFC¡£

inweiyu ·¢±íÓÚ 2008-4-27 01:06

ÂÛ̳¾ÉidÕÒ²»µ½ÁË£­£¬£­

£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­

sudo apt-get install build-essential

Õâ¸ö¿ÉÒÔ°ïÄã°Ñgcc×Ô¶¯×°ºÃ£¬Ç°ÌáÊǰѰ²×°Ô´ÅäÖúÃ

¹ØÓÚubuntu£¬×îºÃÈ¥ubuntuµÄÖÐÎÄÂÛ̳¿´ÏÂÐÂÊÖÅäÖã¬ÕÕ×Å×ö¾ÍºÃ

Éù¿¨ÎÊÌ⣬±È½ÏÂé·³£¬ÊÇ´ÓÈ¥Äê¾ÍÓеÄbugÁË£¬ÎÒµçÄÔlenovoµÄÒ²ÓÐÕâ¸öÎÊÌâ

¸øÄã·¢ÏÂÎҵĽâ¾ö·½·¨£¬»ù±¾¾ÍÊÇ2¸öÌû×Ó£¬ÏÈÊǸüÐÂalsaÇý¶¯£¬È»ºóÊÇÉÔ΢ÅäÖÃÏÂconfigureÎļþ


£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­
2) ¸üÐÂalsaÇý¶¯
   

Using alsa-source
Open up a shell: (note: module-assistant is optional, it will compile the package for you)
      * Type sudo apt-get install build-essential linux-headers-$(uname -r) module-assistant alsa-source
      * Type sudo dpkg-reconfigure alsa-source
      * You now have a big blue dialog box (left and right keys to choose 'Yes' and 'No', Enter key proceed). Answer yes (for ISA-PNP - recommended by package maintainers), then yes again (for debugging - recommended by package maintainers).
      * Now you must pick which driver you want to install. Use space to select and deselect modules, and up and down to navigate.
      * From General Help step 3, you should know the name of your driver. Deselect 'all' (the * will go away), and select your driver. In my case, I deselected 'all' then selected 'via82xx'. Hit Enter. Almost home free!
      * If you chose module-assistant sudo module-assistant a-i alsa-source. If the progress bar reaches 100% with no errors, you will have installed the drivers successfully. Resume this guide from General Help step 4.
      * If you did not choose module-assistant - Remember the name of your soundcard driver (eg. via82xx) and use it in place of <insert driver> below.

£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­£­

3) ÉèÖÃalsa-base


Manually Specify Module Parameters
First you must find which model of sound card you use, so run this command:
      *
                cat /proc/asound/card0/codec#* | grep Codec It will return model of your sound card(s), for example: "Codec: Realtek ALC260", so your sound card is ALC260.
You should open a file in ALSA documentation. This file is here (replace KERNEL_VERSION with your kernel's version!):
      *         /usr/src/KERNEL_VERSION/Documentation/sound/alsa/ALSA-Configuration.txt If you didn't have this file, for version 2.6.22, you can check out  this link or you can find ALSA-Configuration.txt in the subdirectory /alsa-kernel/Documentation/ of the alsa-driver-1.x.x directory you created.
Search for your model, and take a look at its types, for example I found the following lines for ALC260:
      * hp              HP machines
hp-3013         HP machines (3013-variant)
fujitsu         Fujitsu S7020
acer            Acer TravelMate
basic           fixed pin assignment (old default model)
auto            auto-config reading BIOS (default)
Read all of them and try to find the one which is more similar to your sound card, for example if you have a laptop, you can choose "acer".
Open /etc/modprobe.d/alsa-base with the following command:
      * sudo nano /etc/modprobe.d/alsa-base
Then paste the following line at the end of the file (change MODEL with the type of sound card's model, in our example it should be "acer" (without quotation marks)):
options snd-hda-intel model=MODEL
Reboot

Ò³: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.