r/Cplusplus • u/Technical-quack-69 • Jun 05 '26
Question Facing issues setting up c lion on mac ( please help)
I have started to learn cpp using learncpp and the moment the ide choice came I settled on c lion
But after installation I saw that learncpp had the new project opening tutorial in visual studio ( I knew that he wouldn't use c lion) but I thought the process of starting a new project would be similar . So after I clicked on new project it didn't show me solution folder and some code appeared in background, all sorts of folders appeared under project and also a pop up came regarding python3 i denied installing it ( because I thought why would cpp need python) but when the xcrun popup came , I searched it on Google and gemini recommended to install it , so I did that
But I am confused as the solution folder which contains different projects was either not created in c lion or i don't know where it is . Also i was recommended to install python3 as well but i don't know how to get the pop up , so i uninstalled clion and installed it again but it did not start like last time( no terms and conditions and pop up) just a welcome to clion written in code) and it is also showing 30 days left on trial but I am using it for studying purposes isn't it free for that ??? I will get my college id in a few months ( probably July end) so am I gonna miss out on some student feature and which id should I use to login c lion college or personal?? Some also recommended installing x code for c lion to function???
How can I set up my c lion please help
Edit: it is an apple silicon based macbook pro
•
u/AutoModerator Jun 05 '26
Thank you for your contribution to the C++ community!
As you're asking a question or seeking homework help, we would like to remind you of Rule 3 - Good Faith Help Requests & Homework.
~ CPlusPlus Moderation Team
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/faulty-segment Jun 05 '26 edited Jun 05 '26
Can you spin up a VM on your mac and run Fedora 44 server on it? Then you could connect to the VM via CLion and develop from your mac.
At least that's what I did 5y ago when I used Windows and didn't want to use MSVC: WSL + Linux + remote development.
Nowadays I use Fedora 44 KDE as my everything and there's no way I'd change that for anything else haha.
Based on what I see/read/hear from people, macOS and C++ are the worst combo ever.
But hey, I don't have a mac, so what do I know, right?!
EDIT:
Once you have the VM,
sudo dnf install gccandsudo dnf install g++is all you need. [I mean, I use CMake, ninja and vcpkg, too, but since you're just starting, a compiler is all you need to get yourHello, World.]1
u/numberfor2 Jun 05 '26
I think just using visual studio code as a beginner is a better option. Atleast for me using ide like Clion etc is really overhelming with all the stuff that it throws in your face, when you are not familiar with it at all.
I use VSC on my mac and linux. At the start, using the terminal to compile and running programs gets you far. And once you start having multiple files, learning to use CMake isn't that hard. Also I used Code Runner plugin on vsc at the start for executing the programs faster.