FreeBSD 11.3 x32 GCC8 GMAKE KURULUM

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 273

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0

Şifre 12345

freebsd te mysql kurulu fakat başlatma kodu ekli değil putty login olup

echo 'mysql_enable="YES"' >> /etc/rc.conf

yukarıda belirttigim kodu yapıştırırsanız mysql da sorunsuz bir şekilde aktif olacaktır.

2 14:52 cp /usr/share/zoneinfo/Europe/Istanbul /etc/localtime
3 14:52 ntpdate 0.tr.pool.ntp.org
4 11:53 reboot
5 11:55 cd /usr/ports/devel/subversion && make install clean BATCH=yes
cd /usr/ports/lang/gcc8 && make install clean BATCH=yes
cd /usr/ports/devel/makedepend && make install clean BATCH=yes
cd /usr/ports/misc/compat7x && make install clean BATCH=yes
cd /usr/ports/misc/compat9x && make install clean BATCH=yes
cd /usr/ports/misc/compat11x && make install clean BATCH=yes
cd /usr/ports/devel/boost-all && make install clean BATCH=yes
6 14:52 ntpdate 0.tr.pool.ntp.org
7 18:23 poweroff
8 18:34 pkg info
9 18:34 cd /usr/ports/security/cryptopp && make install clean BATCH=yes
10 18:39 cd /usr/ports/databases/mysql56-server && make install clean BATCH=yes
11 19:40 cd /usr/ports/graphics/devil && make install clean BATCH=yes
12 1:13 history
13 1:14 poweroff
14 20:04 cd /usr/ports/devel/gdb && make install clean BATCH=yes




FreeBSD 11.3 x32 Sistemi İçin GCC8 ve GMAKE Kurulumu

Metin2 sunucularının FreeBSD tabanlı sistemler üzerinde barındırılması, özellikle performans, kararlılık ve güvenlik açısından büyük avantajlar sunar. FreeBSD, Metin2 geliştiricileri ve sunucu yöneticileri arasında popüler olan bir sistemdir. Bu makalede, FreeBSD 11.3 x32 sürümüne GCC8 ve GMAKE kurulumu adım adım anlatılacaktır. Bu kurulumlar, özellikle eski mimari desteklenen sistemlerde derleme işlemleri için kritik öneme sahiptir.

Önemli Not: FreeBSD 11.3 32-bit sistemlerde çalışırken, bazı paketler varsayılan olarak derlenmeyebilir veya eksik olabilir. Bu durumda GCC8 gibi geleneksel GNU araçları oldukça faydalı olur. GMAKE ise GNU make komutunun FreeBSD üzerinde doğru şekilde çalışmasını sağlar.

1. Hazırlık Adımları

Başlamadan önce sisteminizi güncelleyin:

Kod:
[B]sudo freebsd-update fetch[BR][/BR]sudo freebsd-update install[BR][/BR]pkg update && pkg upgrade[/B]


Ardından gerekli temel araçları yükleyin:

Kod:
[B]pkg install wget curl vim bash sudo[/B]


2. GCC8 Kurulumu

GCC8 derleme işlemlerinde gerekli olan önemli bir bileşendir. FreeBSD 11.3'te varsayılan derleyici clang olabilir; ancak bazı projeler GCC kullanımını gerektirebilir. GCC8'i aşağıdaki komutla kurun:

Kod:
[B]pkg install gcc8[/B]


Kurulum tamamlandıktan sonra GCC8'in doğru şekilde yüklendiğini kontrol edin:

Kod:
[B]gcc8 --version[/B]


Eğer komut çıktısı GCC8 bilgilerini gösteriyorsa başarıyla kurulmuştur.

3. GMAKE (GNU Make) Kurulumu

FreeBSD varsayılan olarak 'make' komutu için kendi 'bmake' aracını kullanır. Ancak bazı projeler GNU Make (yani GMAKE) kullanımını zorunlu kılar. GMAKE kurulumu için:

Kod:
[B]pkg install gmake[/B]


Kurulum sonrası komutu test edin:

Kod:
[B]gmake --version[/B]


4. Ortam Değişkenlerinin Ayarlanması (İsteğe Bağlı)

Bazı derleme süreçlerinde GCC8 ve GMAKE'in otomatik olarak kullanılmasını isterseniz, ortam değişkenlerini ayarlayabilirsiniz. Örneğin:

Kod:
[B]export CC=gcc8[BR][/BR]export CXX=g++8[BR][/BR]export MAKE=gmake[/B]


Bu değişiklikleri kalıcı yapmak için ~/.bashrc dosyasına ekleyin.

5. Test Aşaması

Artık GCC8 ve GMAKE sistemde mevcut. Basit bir test dosyası oluşturarak derleme işlemini test edebilirsiniz. Örnek C++ dosyası:

Kod:
[B]cat > test.cpp << EOF[BR][/BR]#include <iostream>[BR][/BR]int main() {[BR][/BR]std::cout << 'Hello from GCC8 on FreeBSD 11.3' << std::endl;[BR][/BR]return 0;[BR][/BR]}[BR][/BR]EOF[/B]


Derlemek için:

Kod:
[B]g++8 -o test test.cpp[BR][/BR]./test[/B]


Çıktı olarak 'Hello from GCC8 on FreeBSD 11.3' mesajını almalısınız.

Sonuç

FreeBSD 11.3 x32 sistemlerde GCC8 ve GMAKE kurulumu oldukça basittir. Bu araçlar sayesinde, özellikle Metin2 gibi eski yapılandırılmış projelerin derlenmesi kolaylaşır. Sistem güvenliği ve kararlılığı açısından da FreeBSD, Metin2 sunucuları için güçlü bir tercihtir. Daha fazla bilgi ve destek için Metin2Lobby sitesini ziyaret edebilirsiniz.


Installing GCC8 and GMAKE on FreeBSD 11.3 x32

Running Metin2 servers on FreeBSD-based systems offers significant advantages in terms of performance, stability, and security. FreeBSD is a popular system among Metin2 developers and server administrators. In this article, we will explain step by step how to install GCC8 and GMAKE on FreeBSD 11.3 x32 systems. These installations are critical for compilation processes especially on older architecture-supported systems.

Important Note: On FreeBSD 11.3 32-bit systems, some packages may not compile by default or may be missing. In such cases, traditional GNU tools like GCC8 prove very useful. GMAKE ensures that the GNU make command works properly on FreeBSD.

1. Preparation Steps

Before starting, update your system:

Kod:
[B]sudo freebsd-update fetch[BR][/BR]sudo freebsd-update install[BR][/BR]pkg update && pkg upgrade[/B]


Then install necessary basic tools:

Kod:
[B]pkg install wget curl vim bash sudo[/B]


2. Installing GCC8

GCC8 is an essential component required in compilation processes. On FreeBSD 11.3, the default compiler might be clang; however, certain projects may require GCC usage. Install GCC8 with the following command:

Kod:
[B]pkg install gcc8[/B]


After installation, verify that GCC8 has been installed correctly:

Kod:
[B]gcc8 --version[/B]


If the command output shows GCC8 information, then it has been successfully installed.

3. Installing GMAKE (GNU Make)

FreeBSD uses its own 'bmake' tool by default for the 'make' command. However, certain projects enforce the use of GNU Make (GMAKE). To install GMAKE:

Kod:
[B]pkg install gmake[/B]


Test the command after installation:

Kod:
[B]gmake --version[/B]


4. Setting Environment Variables (Optional)

If you want GCC8 and GMAKE to be used automatically during certain build processes, you can set environment variables. For example:

Kod:
[B]export CC=gcc8[BR][/BR]export CXX=g++8[BR][/BR]export MAKE=gmake[/B]


To make these changes permanent, add them to the ~/.bashrc file.

5. Testing Phase

Now GCC8 and GMAKE are available on the system. You can create a simple test file to test the compilation process. Example C++ file:

Kod:
[B]cat > test.cpp << EOF[BR][/BR]#include <iostream>[BR][/BR]int main() {[BR][/BR]std::cout << 'Hello from GCC8 on FreeBSD 11.3' << std::endl;[BR][/BR]return 0;[BR][/BR]}[BR][/BR]EOF[/B]


To compile:

Kod:
[B]g++8 -o test test.cpp[BR][/BR]./test[/B]


You should receive the message 'Hello from GCC8 on FreeBSD 11.3' as output.

Conclusion

Installing GCC8 and GMAKE on FreeBSD 11.3 x32 systems is quite straightforward. With these tools, compiling older structured projects such as Metin2 becomes easier. In terms of system security and stability, FreeBSD is a strong choice for Metin2 servers. For more information and support, visit Metin2Lobby.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt