GDS3D -p techfile/example.txt -i gds/example.gds
با اجرای کامند بالا با خطای زیر مواجه میشوم که می گوید کامند را نمیشناسه .GDS3D : command not found
حالا با مراجعه به داخل فایل لینوکس و اجرای یک فایل که حاوی کد زیر است : make
make clean
با خطای زیر مواجه می شوم : g++ -c -w -O1 -I ../math/ -I ../gdsoglviewer/ -I ../libgdsto3d/ main.cpp -o main.o
main.cpp:22:10: fatal error: X11/keysym.h: No such file or directory
22 | #include <X11/keysym.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:32: main.o] Error 1
rm -f main.o ../math/AA_BOUNDING_BOX.o ../math/FRUSTUM.o ../math/MATRIX4X4.o ../math/PLANE.o ../math/VECTOR3D.o ../math/VECTOR4D.o ../gdsoglviewer/gdsobject_ogl.o ../gdsoglviewer/gdsparse_ogl.o ../gdsoglviewer/geopolygon.o ../gdsoglviewer/listview.o ../gdsoglviewer/outputStream.o ../gdsoglviewer/renderer.o ../gdsoglviewer/ui_highlight.o ../gdsoglviewer/ui_ruler.o ../gdsoglviewer/windowmanager.o ../gdsoglviewer/win_keymap.o ../gdsoglviewer/win_legend.o ../gdsoglviewer/win_topmap.o ../libgdsto3d/assembly_cfg.o ../libgdsto3d/gdselements.o ../libgdsto3d/gds_globals.o ../libgdsto3d/gdsobject.o ../libgdsto3d/gdsobjectlist.o ../libgdsto3d/gdsparse.o ../libgdsto3d/gdspath.o ../libgdsto3d/gdspolygon.o ../libgdsto3d/gdstext.o ../libgdsto3d/process_cfg.o ../libgdsto3d/Voronoi3D.o ../libgdsto3d/clipper/clipper.o ../libgdsto3d/voro++/src/voro++.o
خواستم از دوستان عزیز بپرسم چطوری باید این مشکل را برطرف کنم .g++ -c -w -O1 -I ../math/ -I ../gdsoglviewer/ -I ../libgdsto3d/ main.cpp -o main.o
main.cpp:22:10: fatal error: X11/keysym.h: No such file or directory
22 | #include <X11/keysym.h>
| ^~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:32: main.o] Error 1
rm -f main.o ../math/AA_BOUNDING_BOX.o ../math/FRUSTUM.o ../math/MATRIX4X4.o ../math/PLANE.o ../math/VECTOR3D.o ../math/VECTOR4D.o ../gdsoglviewer/gdsobject_ogl.o ../gdsoglviewer/gdsparse_ogl.o ../gdsoglviewer/geopolygon.o ../gdsoglviewer/listview.o ../gdsoglviewer/outputStream.o ../gdsoglviewer/renderer.o ../gdsoglviewer/ui_highlight.o ../gdsoglviewer/ui_ruler.o ../gdsoglviewer/windowmanager.o ../gdsoglviewer/win_keymap.o ../gdsoglviewer/win_legend.o ../gdsoglviewer/win_topmap.o ../libgdsto3d/assembly_cfg.o ../libgdsto3d/gdselements.o ../libgdsto3d/gds_globals.o ../libgdsto3d/gdsobject.o ../libgdsto3d/gdsobjectlist.o ../libgdsto3d/gdsparse.o ../libgdsto3d/gdspath.o ../libgdsto3d/gdspolygon.o ../libgdsto3d/gdstext.o ../libgdsto3d/process_cfg.o ../libgdsto3d/Voronoi3D.o ../libgdsto3d/clipper/clipper.o ../libgdsto3d/voro++/src/voro++.o
سلاممتاسفانه من خودم مبتدی هستم.
چطوری باید این کار رو انجام بدم ؟
سلامویرایش شد
متاسفانه سوالتون را ویرایش کنید و خطاها و دستورات را به صورت قالب کد درآورید تا قابل فحم باشد و صورت سوال خود را هم از قالب کد در بیاورید. ولی دقیقا شما برعکس صورت سوال را به صورت کد و ارور و کامند هارا به صورت عادی قرار دادید. ](*,)
ممنونم از شماسلاممتاسفانه من خودم مبتدی هستم.
چطوری باید این کار رو انجام بدم ؟
دو راه دارید. یا اینکه صبر کنید صبح بشه و دیگران که باتجربه تر هستند برایتان طوضیح دهند یا در اینترنت سرچ کنید
How to add X11/keysym.h to g++ on Linux
امیدوارم گرامرم درست باشه.
sudo apt install libx11-dev
احتمالا با نصب این کتابخانه مشکل حل بشه.برای اجرای کامندی که شما فرمودید اقدام کردم و خطای آبدیت apt داد.کد: [انتخاب]sudo apt install libx11-dev
https://stackoverflow.com/a/5300030/7508077
Err:1 http://ir.archive.ubuntu.com/ubuntu impish InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:2 http://security.ubuntu.com/ubuntu impish-security InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:3 http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:4 http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish InRelease' is no longer signed.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu impish-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/impish-security/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-updates/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
این رو چطوری رفع کنم ؟
ping 1.1.1.1
کامند زیر را بزنید و بعد عکس خروجی را بفرستیدفعلا داره دستوراتی به فرم زیر اجرا م یکنه :کد: [انتخاب]ping 1.1.1.1
64 bytes from 1.1.1.1: icmp_seq=116 ttl=50 time=122 ms
64 bytes from 1.1.1.1: icmp_seq=117 ttl=50 time=347 ms
64 bytes from 1.1.1.1: icmp_seq=118 ttl=50 time=159 ms
64 bytes from 1.1.1.1: icmp_seq=119 ttl=50 time=198 ms
نمیدونم چرا به این مخزن دربو داغون https//ir.archive.ubuntu.com وصل نمیشه.وات تو دو ؟!
این مشکل را یک نفر مثل شما هم داشتند. ](*,) ](*,)
sudo nano /etc/apt/sources.list
را بزنید و عکس بفرستید https//archive.ubuntu.com
دنبال متن های https//ir.archive.ubuntu.com بگردید و تمام آن هارا با حذف ir. به
تبدیل کنید.کد: [انتخاب]https//archive.ubuntu.com
rr:1 http://ir.archive.ubuntu.ir/ubuntu impish InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:2 http://security.ubuntu.ir/ubuntu impish-security InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:3 http://ir.archive.ubuntu.ir/ubuntu impish-updates InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:4 http://ir.archive.ubuntu.ir/ubuntu impish-backports InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ir.archive.ubuntu.ir/ubuntu impish InRelease' is not signed.
E: Failed to fetch http://ir.archive.ubuntu.ir/ubuntu/dists/impish/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.ir/ubuntu impish-security InRelease' is not signed.
E: Failed to fetch http://security.ubuntu.ir/ubuntu/dists/impish-security/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: Failed to fetch http://ir.archive.ubuntu.ir/ubuntu/dists/impish-updates/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.ir/ubuntu impish-updates InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ir.archive.ubuntu.ir/ubuntu/dists/impish-backports/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.ir/ubuntu impish-backports InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
سلام
در فایل راهنمای اجرای نرم افزار گفته شده با کامند زیر نرم افزار اجرا خواهد شد و ویکی از مثال های خود برنامه شبیه خواهد شد :کد: [انتخاب]GDS3D -p techfile/example.txt -i gds/example.gds
با اجرای کامند بالا با خطای زیر مواجه میشوم که می گوید کامند را نمیشناسه .کد: [انتخاب]GDS3D : command not found
برای اجرای کامندی که شما فرمودید اقدام کردم و خطای آبدیت apt داد.عجیبه که خطای 403 داده. نمیذاره شما بهش دسترسی داشته باشید. خیلی عجیبه.
کامند آبدیت apt رو اجرا کردم که خطای زیر رو مشاهده کردم .کد: [انتخاب]Err:1 http://ir.archive.ubuntu.com/ubuntu impish InRelease
این رو چطوری رفع کنم ؟
403 Forbidden [IP: 89.106.206.253 5555]
Err:2 http://security.ubuntu.com/ubuntu impish-security InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:3 http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:4 http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish InRelease' is no longer signed.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu impish-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/impish-security/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-updates/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
cat /etc/apt/sources.list
سلامسلام
در فایل راهنمای اجرای نرم افزار گفته شده با کامند زیر نرم افزار اجرا خواهد شد و ویکی از مثال های خود برنامه شبیه خواهد شد :کد: [انتخاب]GDS3D -p techfile/example.txt -i gds/example.gds
با اجرای کامند بالا با خطای زیر مواجه میشوم که می گوید کامند را نمیشناسه .کد: [انتخاب]GDS3D : command not found
سلام
دلیلی که میخواهید این برنامه رو نصب کنید چی هست؟ فکر کنم یه جایگرین برای اون توی مخازن وجود داشته باشه.
خطایی که دیدید به خاطر این هست که GDS3 توی PATH شما نیست. به خاطر همین پیدا نشده و خطا گرفتید.برای اجرای کامندی که شما فرمودید اقدام کردم و خطای آبدیت apt داد.عجیبه که خطای 403 داده. نمیذاره شما بهش دسترسی داشته باشید. خیلی عجیبه.
کامند آبدیت apt رو اجرا کردم که خطای زیر رو مشاهده کردم .کد: [انتخاب]Err:1 http://ir.archive.ubuntu.com/ubuntu impish InRelease
این رو چطوری رفع کنم ؟
403 Forbidden [IP: 89.106.206.253 5555]
Err:2 http://security.ubuntu.com/ubuntu impish-security InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:3 http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:4 http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish InRelease' is no longer signed.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu impish-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/impish-security/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-updates/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
محتویات فایل sources.list رو اینجا قرار بدید.کد: [انتخاب]cat /etc/apt/sources.list
مخزن داکر هم اضافه کردید؟ داکر که توی مخارن رسمی هست.
چرا اوبونتو ۲۱.۱۰ نصب کردید؟ اون یه نسخه lts نیست. نسخههای غیر lts، فقط تا ۹ ماه بعد از انتشارشون پشتیبانی میشن.
این نسخه حدود ۹ ماه پیش منتشر شده. احتمالا به خاطر همین هست که نمیتونید از مخازن استفاده کنید.
ls -l /etc/apt/apt.conf.d/
این دستور فقط محتویات دایرکتوری /etc/apt/apt.conf.d/ رو نشون میده. کار خاصی انجام نمیده.sudo apt-get update
پیام هایی که قبلا ارسال کردم نمایش داده میشه .Err:1 http://ir.archive.ubuntu.com/ubuntu impish InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:2 http://security.ubuntu.com/ubuntu impish-security InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:3 http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Err:4 http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease
403 Forbidden [IP: 89.106.206.253 5555]
Hit:5 https://download.docker.com/linux/ubuntu impish InRelease
Reading package lists... Done
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish InRelease' is no longer signed.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
N: See apt-secure(8) manpage for repository creation and user configuration details.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
E: The repository 'http://security.ubuntu.com/ubuntu impish-security InRelease' is no longer signed.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/impish-security/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-updates/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-updates InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://ir.archive.ubuntu.com/ubuntu/dists/impish-backports/InRelease 403 Forbidden [IP: 89.106.206.253 5555]
E: The repository 'http://ir.archive.ubuntu.com/ubuntu impish-backports InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
cat /etc/resolv.conf
resolvectl status
ip address show
ping -c 5 1.1.1.1
ls -l /etc/apt/apt.conf.d/
cat /etc/apt/sources.list
ls -l /etc/apt/sources.list.d