Jump to content
과거의 기술자료(읽기 전용): https://tech.devgear.co.kr ×
과거의 기술자료(읽기 전용): https://tech.devgear.co.kr

우분투 22.04 설정 - 델파이 11.2 디버깅 용으로 설정해보자!


Recommended Posts

I created a Bash script a while back for setting up Ubuntu for Delphi development, and update it for each new release. The script automatically installs all the required packages, along with PAServer. I recently updated it again due to an LLDB debugging issue.

얼마 전 델파이에서 우분투(Ubuntu) 설정을 위해 Bach 스크립트를 만들었고, 각 새 릴리즈마다 이를 업데이트하고 있다. 스크립트는 PAServer와 함께 필요한 모든 패키지를 자동 설치한다. 최근에는 LLDB 디버깅 이슈가 있어 다시 업데이트했다.

 

오류 (Error)

Unable to start LLDB kernel: ‘Symbolic link target does not exist: 
/home/jim/PAServer/22.0/lldb/lib/libpython3.so -> /usr/lib/x86_64-linux-
gnu/libpython3.6.so.1.0

Please make sure that the target exists or update the link to point to the new Python 3 shared object file’.

Unable to start LLDB kernel: ‘Symbolic link target does not exist: 
/home/jim/PAServer/22.0/lldb/lib/libpython3.so -> /usr/lib/x86_64-linux-
gnu/libpython3.6.so.1.0

Please make sure that the target exists or update the link to point to the new Python 3 shared object file’.

spacer.png

The error is due to an updated version of Python being standard in Ubuntu 22.04 LTS Jammy Jellyfish. By default is ships wit Python version 3.10, while PAServer was hardcoded for Python 3.6. There is a known issue workaround in DocWiki to manually fix it, but I wanted to update my Bash script to do this automatically.

해당 오류의 원인은 우분투 22.04 LTS Jammy Jellyfish에서 파이썬 업데이트 버전이 표준이 되면서 발생하는 것이다. 기본적으로 Python 버전 3.10이 함께 제공되는데, PAServer는 Python 3.6 용으로 하드 코딩되어 있다. DocWiki에서 직접 수동으로 수정할 수 있는 방법을 확인할 수 있지만, 해당 작업이 자동 수행되도록 내가 만든 Bash 스크립트를 업데이트하고자 했다.

 

해결 방법

The fix is to update the symbolic link with whatever version of Python is installed.

설치되어 있는 파이썬 버전으로 심볼릭 링크를 업데이트하여 해당 문제를 해소했다. 

ln -sf `ls -1 /usr/lib/x86_64-linux-gnu/libpython3.*.so.1.0 | tail -1` ~/PAServer/22.0/lldb/lib/libpython3.so
  •  ln -sf  ▶ 심볼릭 링크 업데이트
  •  ln -1 /usr/lib/x86_64-linux-gnu/libpython3.*.so.1.0  ▶ 마스크(mask)와 일치하는 파일 이름 가져오기
  •  tail -1  ▶ 마지막 파일 가져오기 (둘 이상인 경우)
  • pipe 심볼은 tail을 통해 ls 명령 실행
  • 왼쪽에 따옴표를 하나 찍고, 그 안에 입력한 모든 내용을 통해 해당 명령 실행 및 외부 구문에서 활용
  •  ~/PAServer/22.0/11db/libpython3.so  ▶ 이전 심볼릭 링크 경로
  • 참고: 해당 설명에서는 PAServer가  ~/PAServer/22.0/ 경로에 설치되어 있는 것으로 가정한 것이므로, 경로 변경이 필요할 수 있다.

I’ve tested this on a few different installations and it is working reliably for me, but your millage may vary. Good luck!

해당 내용을 몇 가지 다른 설치로 테스트해보았고, 안정적으로 작동하는 것을 확인했다. 하지만 여러분에게는 다를 수도 있다.

 

스크립트(Script)

Or you can simply use my Bash script. It is published as a GitHub Gist https://embt.co/Ubuntu4Delphi22 where you can view the source. You can download and run it right from the command-line:

간단하게 나의 Bash 스크립트를 활용해도 된다. GitHyb Gist https://embt.co/Ubuntu4Delphi22 에서 소스를 확인할 수 있다. 커맨드라인에서 바로 다운로드 받아 실행할 수 있다.

# these lines are necessary if you don't have curl installed
sudo apt update 
sudo apt install curl -y
 
# downloads and runs the script
curl -L https://embt.co/SetupUbuntu4Delphi22 | bash

I have a version for Red Hat / Fedora / CentOS too (although it isn’t as tested or updated. Sorry, I don’t use CentOS very often.)

Red Hat / Fedora / CentOS 버전도 있다 (하지만 테스트나 업데이트는 하지 못했다. CentOS를 자주 사용하지 않다보니, 이 부분에 대해서는 양해를 구한다)

이 댓글 링크
다른 사이트에 공유하기

  • RAD changed the title to 우분투 22.04 설정 - 델파이 11.2 디버깅 용으로 설정해보자!

이 토의에 참여하세요

지금 바로 의견을 남길 수 있습니다. 그리고 나서 가입해도 됩니다. 이미 회원이라면, 지금 로그인하고 본인 계정으로 의견을 남기세요.

Guest
이 토픽(기고/질문)에 답하기

×   서식있는 텍스트로 붙여넣기.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   이전에 작성한 콘텐츠가 복원되었습니다..   편집창 비우기

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

중요한 정보

이용약관 개인정보보호정책 이용규칙 이 사이트가 더 잘 작동하기 위해 방문자의 컴퓨터에 쿠키가 배치됩니다. 쿠키 설정 변경에서 원하는 설정을 할 수 있습니다. 변경하지 않으면 쿠키를 허용하는 것으로 이해합니다.