stlinux2.2 building problem
Linux Error: curses.h: No such file or directory Problem Solution
by Vivek Gite · 1 comment
Q. I see following error when I run make command to install specific software:
curses.h: No such file or directory Problem Solution
How do I fix this error under Red Hat Enterprise Linux (RHEL) or CentOS/Fedora Linux?A.. You need to install the curses library which include routines for a terminal-independent method of updating character screens with reasonable optimization. The ncurses (new curses) library is a freely distributable replacement for thediscontinued 4.4 BSD classic curses library.
Fix this error under RHEL / Fedora / CentOS Linux
Type the following command at a shell prompt as root user: # yum install ncurses-devel ncurses
Sample output: Loading "downloadonly" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
rhel-x86_64-server-vt-5 100% |=========================| 1.2 kB 00:00
rhel-x86_64-server-5 100% |=========================| 1.2 kB 00:00
Setting up Install Process
Parsing package install arguments
Package ncurses - 5.5-24.20060715.x86_64 is already installed.
Package ncurses - 5.5-24.20060715.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.5-24.20060715 set to be updated
---> Package ncurses-devel.i386 0:5.5-24.20060715 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ncurses-devel x86_64 5.5-24.20060715 rhel-x86_64-server-5 1.7 M
ncurses-devel i386 5.5-24.20060715 rhel-x86_64-server-5 1.6 M
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ncurses-devel-5.5- 100% |=========================| 1.6 MB 00:01
(2/2): ncurses-devel-5.5- 100% |=========================| 1.7 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ncurses-devel ######################### [1/2]
Installing: ncurses-devel ######################### [2/2]
Installed: ncurses-devel.x86_64 0:5.5-24.20060715 ncurses-devel.i386 0:5.5-24.20060715
Complete!
Fix this error under Debian / Ubuntu Linux
Open terminal and type the following command to install ncurses: $ sudo apt-get install libncurses5-dev libncursesw5-dev
==================================
[kernel]: error: ‘PATH_MAX’ undeclared (first use in this function)
분류: Tips
2010-09-05 09:26
1788명 읽기
설명 (1)
소장하다
고발
function path each linux
커널 2.6.18.8 교차 컴파일 문제는 다음과 같다.
scripts/mod/sumversion.c: In function ‘get_src_version’: scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared (first use in this function) scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported only once scripts/mod/sumversion.c:384: error: for each function it appears in.) scripts/mod/sumversion.c:384: warning: unused variable ‘filelist’ make[3]: *** [scripts/mod/sumversion.o] Error 1 make[2]: *** [scripts/mod] Error 2 make[1]: *** [scripts] Error 2 make[1]: Leaving directory `/home/nios2/uClinux-dist/linux-2.6.x' make: *** [linux] Error 1
해결 방법:
# vi scripts/mod/sumversion.c
헤더 파일에 제한이 있는지 확인합니다.h, 없으면 포함하면 된다
#inlcude
공유:
이전: PCI 버스와 인터페이스 기술
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Qiita의 API를 부를 때 끝에 슬래시를 붙이면 http://~로 리디렉션되므로 조심합시다.
제목대로.
curl 결과는 .
예전에 보았던 오류에 근거한 박자를 만났습니다
이것은 메시지처럼 HTTP 통신을 시도할 때 iOS가 차단하는 사람입니다.
URLSession 에 건네주고 있는 url는 확실히 https...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.
Loading "downloadonly" plugin
Loading "rhnplugin" plugin
Loading "security" plugin
rhel-x86_64-server-vt-5 100% |=========================| 1.2 kB 00:00
rhel-x86_64-server-5 100% |=========================| 1.2 kB 00:00
Setting up Install Process
Parsing package install arguments
Package ncurses - 5.5-24.20060715.x86_64 is already installed.
Package ncurses - 5.5-24.20060715.i386 is already installed.
Resolving Dependencies
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.5-24.20060715 set to be updated
---> Package ncurses-devel.i386 0:5.5-24.20060715 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ncurses-devel x86_64 5.5-24.20060715 rhel-x86_64-server-5 1.7 M
ncurses-devel i386 5.5-24.20060715 rhel-x86_64-server-5 1.6 M
Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 3.3 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): ncurses-devel-5.5- 100% |=========================| 1.6 MB 00:01
(2/2): ncurses-devel-5.5- 100% |=========================| 1.7 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ncurses-devel ######################### [1/2]
Installing: ncurses-devel ######################### [2/2]
Installed: ncurses-devel.x86_64 0:5.5-24.20060715 ncurses-devel.i386 0:5.5-24.20060715
Complete!
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
Qiita의 API를 부를 때 끝에 슬래시를 붙이면 http://~로 리디렉션되므로 조심합시다.제목대로. curl 결과는 . 예전에 보았던 오류에 근거한 박자를 만났습니다 이것은 메시지처럼 HTTP 통신을 시도할 때 iOS가 차단하는 사람입니다. URLSession 에 건네주고 있는 url는 확실히 https...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.