8,367
edits
Changes
→Debian Bullseye System
<li>The version of gcc is as follows</li></ol>
</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''gcc --version'''
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|}
<ol start="2" style="list-style-type: lower-alpha;">
<li>Write the '''hello_world.c''' program in C language</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''vim hello_world.c'''
#include <stdio.h>
int main(void)
{
:printf("Hello World!\n");
:return 0;
}
|}
<ol start="3" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.c'''</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''gcc -o hello_world hello_world.c'''
Hello World!
|}
<ol start="2" style="list-style-type: decimal;">
<li>The specific version of Python is as follows</li></ol>
</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''python3'''
>>>
|}
<ol start="2" style="list-style-type: lower-alpha;">
<li>Write '''hello_world.py''' program in Python language</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''vim hello_world.py'''
print('Hello World!')
|}
<ol start="3" style="list-style-type: lower-alpha;">
<li>The result of running '''hello_world.py'''is as follows</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''python3 hello_world.py'''
Hello World!
|}
<ol start="3" style="list-style-type: decimal;">
<li>You can use the following command to install openjdk, the latest version in Debian Bullseye is openjdk-17</li></ol>
</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''sudo apt install -y openjdk-17-jdk'''
|}
<ol start="2" style="list-style-type: lower-alpha;">
<li>After installation, you can check the version of Java</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''java --version'''
|}
<ol start="3" style="list-style-type: lower-alpha;">
<li>Write the Java version '''hello_world.java'''</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''vim hello_world.java'''
{
:public static void main(String[] args)
:{
::System.out.println("Hello World!");
:}
}
|}
<ol start="4" style="list-style-type: lower-alpha;">
<li>Then compile and run '''hello_world.java'''</li></ol>
{| class="wikitable" style="width:800px;" |-|
orangepi@orangepi:~$ '''javac hello_world.java'''
Hello World!
|}
<span id="debian-bookworm-system"></span>
=== Debian Bookworm System ===