출처: http://ubuntuforums.org/showthread.php?t=1561822

"
VMware can't find kernel header  " problem...


  
To install VMware Tools on a Ubuntu 10.04 Guest, from a Windows 7 Host (running VMware server 2.0.2) this documentation article (https://help.ubuntu.com/community/VMware/Tools) instructs you to use the following commands:
Code:
sudo apt-get install build-essential linux-headers-`uname -r` psmisc
then later
Code:
sudo ./vmware-install.pl
However, like others have posted before, this results in compilation errors:


Quote:
you can install the driver by running vmware-config-tools.pl again after making sure that gcc, binutils, make and the kernel sources for your running kernel are installed on your machine.
a) are there instructions available that will allow me to fulfill these requirements?
b) can said instructions be added to the documentation?

There are numerous threads regarding similar issues with VMware Tools. But many of them are unclearly stated, I hope that I have avoided that pitfall.
신고

'빵꾸똥꾸 개발자 > Linux' 카테고리의 다른 글

Install VMware tools in Ubuntu server 10.04  (2) 2011.10.26
printk  (0) 2011.05.13
mib2c 사용법  (0) 2011.05.02
ctags & cscope 설치 및 사용하기  (0) 2010.03.19
How to install GUI in Ubuntu 9.10 (Karmic) Server  (0) 2010.03.17
ubuntu 한글설정  (0) 2010.03.02
Posted by 나마스떼

트랙백 주소 : http://namaste.tistory.com/trackback/156 관련글 쓰기

  1. Subject : vivatic Review

    Tracked from vivatic Review 2014.09.14 10:10  삭제

    나마스떼 - 나를 사랑하라 ::

  2. Subject : content spinning

    Tracked from content spinning 2014.09.14 20:21  삭제

    나마스떼 - 나를 사랑하라 ::

댓글을 달아 주세요

  1. comment maigrir 2011.12.15 18:00 신고  댓글주소  수정/삭제  댓글쓰기

    웹사이트 나는 후회 당신이 게시 할 쓴거야 더 보통 !

  2. Marlin 2011.12.19 21:10 신고  댓글주소  수정/삭제  댓글쓰기

    블로그 !처럼 우리는 이것이 정말 내 중 하나입니다 입니다 친절 에 읽기 !


As a kernel developer you'll probably find yourself treating the 'printk' function as a drop-in replacement for the 'printf' function provided by any useful C library such as uclibc or glibc - After all, it's usage is virtually the same. It was for this reason that I found my self naively surprised when reading the source for the kernel's implementation - I was surprised because it offers many more features than the typical C libraries' implementation. As I was unable to find any useful documentation on this - I thought I'd provide a brief overview.

Let's start with the typical '%p' type format specifier - we usually use it for printing the address of a pointer. However if you take a peek at the 'pointer' function in lib/vsprintf.c you'll notice that you can further specify the pointer type to print additional information. We'll look at some examples.

printk("%pf %pF\n", ptr, ptr) will print:
module_start module_start+0x0/0x62 [hello] 
So where ptr is a function pointer, the %pF and %pf format specifiers will print the symbolic name of the function with or without an offset. In order to make use of this you need to ensure your kernel is compiled with support for CONFIG_KALLSYMS - This adds a symbol table to the kernel.

How about this one:

printk("%pM %pm\n", mac, mac) will print:
2c:00:1d:00:1b:00 2c001d001b00 

So where mac refers to a MAC address, the %pM and %pm format specifiers will nicely print the MAC address with or without colons between bytes.

And finally:

printk("%pI4 %pi64\n", ip, ip) will print:
127.0.0.1 127.000.000.001

So where ip refers to an IP address, the %pI and %pi format specifiers will nicely print the IP address. The 4 suffix specifies the address is an IPv4 address - the 6 suffix for IPv6 address could also be used instead. In the case of IPv4 addresses the difference between an upper and lower case 'I' determines if leading zeros should be used (only in the most recent of kernels). In the case of IPv6 addresses the capitalization determines if colons are used or not.

So if you find yourself writing a network driver, debugging something with function pointers or wondering why stack traces don't contain symbols then these format specifiers may come in useful. For more information, and the full extent of the extended format specifiers (there are more), the best place to look is the code. Happy Coding.

신고

'빵꾸똥꾸 개발자 > Linux' 카테고리의 다른 글

Install VMware tools in Ubuntu server 10.04  (2) 2011.10.26
printk  (0) 2011.05.13
mib2c 사용법  (0) 2011.05.02
ctags & cscope 설치 및 사용하기  (0) 2010.03.19
How to install GUI in Ubuntu 9.10 (Karmic) Server  (0) 2010.03.17
ubuntu 한글설정  (0) 2010.03.02
Posted by 나마스떼

트랙백 주소 : http://namaste.tistory.com/trackback/155 관련글 쓰기

댓글을 달아 주세요



티스토리 툴바