{"id":3538,"date":"2024-09-26T10:03:00","date_gmt":"2024-09-26T08:03:00","guid":{"rendered":"https:\/\/ictknow-how.ch\/blog\/?p=3538"},"modified":"2025-04-03T09:32:52","modified_gmt":"2025-04-03T07:32:52","slug":"installation-von-msys2-und-yasm","status":"publish","type":"post","link":"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-msys2-und-yasm\/","title":{"rendered":"Installation von MSYS2 und YASM"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Schritt <strong>3<\/strong> von 7:<br>Damit man C++-Source Code von GitHub installieren kann, braucht es neben dem Visual Studio 2022 und den Qt-Entwicklertools auch noch die beiden Komponenten MSYS2 und YASM.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Diese Anleitung geht davon aus, dass man bereits ein aktuelles Windows 11 und <a href=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-visual-studio-2022\/\" data-type=\"link\" data-id=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-visual-studio-2022\/\">Visual Studio 2022<\/a> (und die <a href=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-qt-entwicklertools\/\" data-type=\"link\" data-id=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-qt-entwicklertools\/\">Qt-Entwicklertools<\/a>) installiert hat.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt f\u00fcr Schritt-Anleitung f\u00fcr MSYS2:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1)<\/strong> Aktuelle Installationsdatei MSYS2 in 64-bit von hier herunterladen:<br><a href=\"https:\/\/www.msys2.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/www.msys2.org\/<\/a><br>z.B. die Datei <a href=\"https:\/\/github.com\/msys2\/msys2-installer\/releases\/download\/2024-07-27\/msys2-x86_64-20240727.exe\" target=\"_blank\" rel=\"noreferrer noopener\">msys2-x86_64-20240727.exe<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2)<\/strong> Die rund 79,5 MB grosse <code>msys2-*.exe<\/code> starten und f\u00fcr die folgenden Anleitungen diesen Beispiel-Pfad bei der Installation von MSYS2 verwenden:<br><code>C:\\Dev\\msys64<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"751\" height=\"404\" src=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/image-1.png\" alt=\"\" class=\"wp-image-3540\" style=\"width:545px;height:auto\" srcset=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/image-1.png 751w, https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/image-1-300x161.png 300w\" sizes=\"auto, (max-width: 751px) 100vw, 751px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>3)<\/strong> Die \u00fcbrigen Installations-Optionen unver\u00e4ndert \u00fcbernehmen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>4)<\/strong> Am Schluss der Installation MSYS2 <strong>nicht starten<\/strong>. <br>Sondern zuerst den folgenden Eintrag in der Batch-Datei:<br><code>C:\\Dev\\msys64\\msys2_shell.cmd<\/code><br>(ca. Zeile 17) in einem Texteditor wie <a href=\"https:\/\/notepad-plus-plus.org\/downloads\/\" data-type=\"link\" data-id=\"https:\/\/notepad-plus-plus.org\/downloads\/\" target=\"_blank\" rel=\"noreferrer noopener\">Notepad++<\/a> ersetzen:<br><code>rem set MSYS2_PATH_TYPE=inherit<\/code><br>mit<br><code>set MSYS2_PATH_TYPE=inherit<\/code><br>also das f\u00fchrende <strong>rem<\/strong> und den Leerschlag l\u00f6schen. Dadurch werden die bestehenden Umgebungsvariablen von Visual Studio auch f\u00fcr die MSYS2-Shell \u00fcbernommen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Schritt f\u00fcr Schritt-Anleitung f\u00fcr YASM:<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>5)<\/strong> Aktuelles YASM in 64-bit (&#8222;for general use on 64-bit Windows&#8220;) von hier herunterladen:<br><a href=\"https:\/\/yasm.tortall.net\/Download.html\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/yasm.tortall.net\/Download.html<\/a><\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><a href=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/YASM-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"796\" height=\"408\" src=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/YASM-1.png\" alt=\"\" class=\"wp-image-3553\" style=\"width:566px;height:auto\" srcset=\"https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/YASM-1.png 796w, https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/YASM-1-300x154.png 300w, https:\/\/ictknow-how.ch\/blog\/wp-content\/uploads\/2024\/09\/YASM-1-768x394.png 768w\" sizes=\"auto, (max-width: 796px) 100vw, 796px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Die Win64.exe ist keine Installationsroutine, sondern nur eine einzelne direkt ausf\u00fchrbare <a href=\"http:\/\/www.tortall.net\/projects\/yasm\/releases\/yasm-1.3.0-win64.exe\" data-type=\"link\" data-id=\"http:\/\/www.tortall.net\/projects\/yasm\/releases\/yasm-1.3.0-win64.exe\">Datei <\/a>namens<br><code>yasm-1.3.0-win64.exe<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>6)<\/strong> Die Datei <code>yasm-1.3.0-win64.exe<\/code> in dieses Verzeichnis kopieren:<br><code>C:\\Dev\\msys64\\usr\\bin<\/code><br>damit MSYS2 diese Datei sp\u00e4ter finden kann.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>7)<\/strong> Die Datei <code>yasm-1.3.0-win64.exe<\/code> im obigen <code>\\usr\\bin<\/code> Verzeichnis k\u00fcrzen<br>und umbenennen in <code>yasm.exe<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>8)<\/strong> Um Konflikte zwischen den MSYS2- und gleichnamigen Windows-Tools zu vermeiden, muss man sicherheitshalber die Datei<br><code>C:\\Dev\\msys64\\usr\\bin\\link.exe<\/code><br>umbenennen, z.B. in<br><code>C:\\Dev\\msys64\\usr\\bin\\link.exe.DontUseIt<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Weiter geht hier es mit der <a href=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/konfiguration-von-msys2\/\" data-type=\"link\" data-id=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/konfiguration-von-msys2\/\">Konfiguration von MSYS2<\/a><\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;3538&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Installation von MSYS2 und YASM&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Schritt 3 von 7:Damit man C++-Source Code von GitHub installieren kann, braucht es neben dem Visual Studio 2022 und den Qt-Entwicklertools auch noch die beiden Komponenten MSYS2 und YASM. Diese Anleitung geht davon aus, dass man bereits ein aktuelles Windows 11 und Visual Studio 2022 (und die Qt-Entwicklertools) installiert hat. Schritt f\u00fcr Schritt-Anleitung f\u00fcr MSYS2: &#8230; <a title=\"Installation von MSYS2 und YASM\" class=\"read-more\" href=\"https:\/\/ictknow-how.ch\/blog\/2024\/09\/26\/installation-von-msys2-und-yasm\/\" aria-label=\"Mehr Informationen \u00fcber Installation von MSYS2 und YASM\">Weiterlesen<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28,278,245],"tags":[292,297],"class_list":["post-3538","post","type-post","status-publish","format-standard","hentry","category-software","category-visual-studio","category-windows-11","tag-msys","tag-yasm-2"],"_links":{"self":[{"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/posts\/3538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/comments?post=3538"}],"version-history":[{"count":0,"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/posts\/3538\/revisions"}],"wp:attachment":[{"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/media?parent=3538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/categories?post=3538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ictknow-how.ch\/blog\/wp-json\/wp\/v2\/tags?post=3538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}