how can I compile and execute a c program on minix?

2,660 views
Skip to first unread message

L_ToKSicK

unread,
Mar 24, 2017, 5:28:06 PM3/24/17
to minix3
As I was reading, the default compiler for minix is clang, right? So, I would like to know if the compiler is available in the system just after the installation or if I have to do something to put it working. I intend to compile and execute a program in C ("hello world" hahah), is there an easier way to do this?

I am using the 3.3.0 version.

Patrick McC^very

unread,
Mar 24, 2017, 6:04:42 PM3/24/17
to minix3
Hi

Are you comfortable with vim or another text editor available on Minix ?

If so it should just be a simple matter of :

clang hello.c -o hello

Alexander Gorodnev

unread,
Mar 24, 2017, 6:07:48 PM3/24/17
to min...@googlegroups.com
To check compiler all you need is to run in command line:

$ cc -v

If it's installed it will output info about compiler. If not, something like "Command not found".

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

L_ToKSicK

unread,
Mar 24, 2017, 7:55:39 PM3/24/17
to minix3


So, what is happening?

L_ToKSicK

unread,
Mar 24, 2017, 8:08:30 PM3/24/17
to minix3
not found :<


Em sexta-feira, 24 de março de 2017 19:07:48 UTC-3, Alexander A. Gorodnev escreveu:
To check compiler all you need is to run in command line:

$ cc -v

If it's installed it will output info about compiler. If not, something like "Command not found".
2017-03-24 15:04 GMT-07:00 Patrick McC^very <pat...@spellingbeewinnars.org>:
Hi

Are you comfortable with vim or another text editor available on Minix ?

If so it should just be a simple matter of :

clang hello.c -o hello

--
You received this message because you are subscribed to the Google Groups "minix3" group.
To unsubscribe from this group and stop receiving emails from it, send an email to minix3+un...@googlegroups.com.

Patrick McC^very

unread,
Mar 24, 2017, 8:54:35 PM3/24/17
to minix3
Hi

I am sorry I think you have tripped on a bug. I had trouble too. I am using  3.4 R5 and I can say for sure that clang is present, I had trouble with an earlier version of 3.4

Did you get very far in your installation? If not, perhaps you could re-install with the latest version. The basic install is very fast but customizing things takes time....

L_ToKSicK

unread,
Mar 24, 2017, 9:52:42 PM3/24/17
to minix3
hey

ah... this is bad, is there any way to fix it? Or, where can I find other versions to download?
Actually I have only installed the OS on VirtualBox, created the hello.c file and then I tried to execute it.

Patrick McC^very

unread,
Mar 24, 2017, 9:58:17 PM3/24/17
to minix3
I know but there are neat parts to Minix too, if we all keep trying to debug and so on, we can have a small, easy to understand OS with neat features like userland drivers.

Please try the RC5 link at the very bottom of this page:

http://download.minix3.org/iso/snapshot/


L_ToKSicK

unread,
Mar 24, 2017, 10:34:17 PM3/24/17
to minix3
for sure, and thank you very much, I'll try it.

r0ller

unread,
Mar 25, 2017, 6:49:32 AM3/25/17
to minix3
Hi,

According to this link: http://minix3.org/pkgsrc/packages/3.3.0/i386/All/
clang is still in the binary pkg repo, so you can install it with (after initalizing your pkgin database with "pkgin up" if you haven't yet done so): pkgin in clang-3.4nb1

I hope it'll work out.

Regards,
r0ller
Reply all
Reply to author
Forward
0 new messages