티스토리 뷰

이제 하다보니까 별거 아닌것같당

하 하 하 쉽 다 쉬 워

 

 

# ip주소확인
ip addr 

# 네트워크 연결
ifup ens33 

# yum 설치
yum install yum-utils

# 윈도우에서  아래 명령어 수행
C:\Users\negga>scp -r root@192.168.224.152:/home/postgresql12/ C:\test


#리눅스 스크롤
shift + pgup
shift + pgdn


# createrepo 를 다운받기 위한 저장소 추가
yum install http://mirror.centos.org/centos/7/os/x86_64/Packages/createrepo-0.9.9-28.el7.noarch.rpm
-> yum install createrepo


# proj 설치파일 다운로드
wget http://download.osgeo.org/proj/proj-6.0.0.tar.gz
yum install wget
gzip -d proj-6.0.0.tar.gz
tar xvf proj-6.0.0.tar
./configure 하는데 에러남




# centos버전확인
rpm --query centos-release

#proj 설치중러발생
- ./configure  실행중 발생
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... no
checking for cc... no
checking for cl.exc... no
configure: error: in '/home/proj-6.0.0':
configure: error: no acceptable C compiler found in $PATH
See 'config.log' for more details

Error  내용을 보면 C 컴파일로가 없다고 한당
=> yum install gcc
yum install gcc-c++
로 해결


# proj 설치중 에러발생
- 에러내용 
No package 'sqlite3' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variable SQLITE3_CFLAGS
See the pkg-config man page for more details.

=> sqlite-devel 설치 후 해결
yum install sqlite-devel로 해결

scp -r root@192.168.224.152:/home/sqlitedevel/ C:\test2



# geos 설치
wget https://download.osgeo.org/geos/geos-3.9.2.tar.bz2


geos랑 gdal 파일은 받아놓음
# gdal 설치에서 에러남 
=>.proj부터 설치해야했음 


# bz2 압축해제
yum install bzip2
tar -jxvf geos-3.9.2.tar.bz2
./configure
geos 설치완료



# LibXML 설치
wget http://xmlsoft.org/download/libxml2-2.7.7.tar.gz
gzip -d libxml2-2.7.7.tar.gz
tar xvf libxml2-2.7.7.tar
./configure
make 
make install


# postgis 설치
wget http://download.osgeo.org/postgis/source/postgis-3.2.0.tar.gz
tar -xvf postgis-3.2.0.tar.gz









'Linux' 카테고리의 다른 글

리눅스 컴파일  (0) 2023.01.09
PostgreSQL12 DBeaver 연결 오류  (1) 2022.10.25
CentOS 7.9 다운로드  (0) 2022.10.25
리눅스 명령어 정리  (0) 2022.05.31
shp2pgsql로 PostgreSQL에 .shp파일 올리기 (Linux)  (0) 2022.05.31
댓글