FreeBSD ( Gmake Kuramayanlar Source Build Edemeyenler )

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Source build etmek için (gmake,makepend,subversion,devil,gcc48) gibi yardımcıları kurarken aşağıdaki hatayı alıyorsanız çözümü çok basittir.

Öncelikle putty login olalım ve source build etmek için kullanıcağımız sistemleri kurmak için aşağıdaki kodları girelim ve sorunumuz hallolucaktır ek olarak yine sorun ve hata alan olursa konu altından yazsın yardımcı olalım.


Kod:
[FONT=courier new]cd /usr/ports/devel/gmake && make DISABLE_VULNERABILITIES=yes install [/FONT] [FONT=courier new]cd /usr/ports/devel/makedepend && make DISABLE_VULNERABILITIES=yes install [/FONT] [FONT=courier new]cd /usr/ports/devel/subversion && make DISABLE_VULNERABILITIES=yes install [/FONT] [FONT=courier new]cd /usr/ports/graphics/devil && make DISABLE_VULNERABILITIES=yes install [/FONT] [FONT=courier new]cd /usr/ports/lang/gcc48 & make DISABLE_VULNERABILITIES=yes  install [/FONT]

@ ; // Konuna eklersen hata alanlar için yardımcı olur..

HATA
Kod:
[COLOR=#333333]root@metin2:/usr/ports/graphics/devil # cd /usr/ports/devel/gmake && make install clean[/COLOR] [COLOR=#333333]===> gmake-4.1_1 depends on executable: msgfmt - found[/COLOR] [COLOR=#333333]===> gmake-4.1_1 depends on shared library: libintl.so - found (/usr/local/lib/libintl.so.8.1.3)[/COLOR] [COLOR=#333333]===> Configuring for gmake-4.1_1[/COLOR] [COLOR=#333333]configure: loading site script /usr/ports/Templates/config.site[/COLOR] [COLOR=#333333]checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel[/COLOR] [COLOR=#333333]checking whether build environment is sane... configure: error: newly created file is older than distributed files![/COLOR] [COLOR=#333333]Check your system clock[/COLOR] [COLOR=#333333]===> Script "configure" failed unexpectedly.[/COLOR] [COLOR=#333333]Please report the problem to [/COLOR][EMAIL="[email protected]"][email protected][/EMAIL][COLOR=#333333] [maintainer] and attach[/COLOR] [COLOR=#333333]the "/usr/ports/devel/gmake/work/make-4.1/config.log" including the output[/COLOR] [COLOR=#333333]of the failure of your make command. Also, it might be a good idea to provide[/COLOR] [COLOR=#333333]an overview of all packages installed on your system (e.g. a[/COLOR] [COLOR=#333333]/usr/local/sbin/pkg-static info -g -Ea).[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make[1]: stopped in /usr/ports/devel/gmake[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make: stopped in /usr/ports/devel/gmake[/COLOR] [COLOR=#333333]root@metin2:/usr/ports/devel/gmake #[/COLOR] [COLOR=#333333]################################################## ###############[/COLOR] [COLOR=#333333]root@metin2:/usr/ports/devel/subversion # make install clean[/COLOR] [COLOR=#333333]You can have the repository created for you by defining[/COLOR] [COLOR=#333333]WITH_REPOSITORY_CREATION.[/COLOR] [COLOR=#333333]Make sure that:[/COLOR] [COLOR=#333333]* all your svn users are members of a common group[/COLOR] [COLOR=#333333]* this group is the group id of the db/ and locks/[/COLOR] [COLOR=#333333]subdirectories of your repository[/COLOR] [COLOR=#333333]* the above subdirectories are writable by this group[/COLOR] [COLOR=#333333]Many useful scripts will be installed into /usr/local/share/subversion[/COLOR] [COLOR=#333333]===> subversion-1.8.11 has known vulnerabilities:[/COLOR] [COLOR=#333333]subversion-1.8.11 is vulnerable:[/COLOR] [COLOR=#333333]subversion -- DoS vulnerabilities[/COLOR] [COLOR=#333333]CVE: CVE-2015-0251[/COLOR] [COLOR=#333333]CVE: CVE-2015-0248[/COLOR] [COLOR=#333333]CVE: CVE-2015-0202[/COLOR] [COLOR=#333333]WWW: [/COLOR][URL="https://vuxml.freebsd.org/freebsd/8e887b71-d769-11e4-b1c2-20cf30e32f6d.html"]https://vuxml.FreeBSD.org/freebsd/8e...f30e32f6d.html[/URL] [COLOR=#333333]1 problem(s) in the installed packages found.[/COLOR] [COLOR=#333333]=> Please update your ports tree and try again.[/COLOR] [COLOR=#333333]=> Note: Vulnerable ports are marked as such even if there is no update available.[/COLOR] [COLOR=#333333]=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make[1]: stopped in /usr/ports/devel/subversion[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make: stopped in /usr/ports/devel/subversion[/COLOR] [COLOR=#333333]root@metin2:/usr/ports/devel/subversion # cd /usr/ports/devel/p4/cd /usr/ports/devel/p4/[/COLOR] [COLOR=#333333]cd: Too many arguments.[/COLOR] [COLOR=#333333]root@metin2:/usr/ports/devel/subversion # cd /usr/ports/devel/p4/cd[/COLOR] [COLOR=#333333]/usr/ports/devel/p4/cd: No such file or directory.[/COLOR] [COLOR=#333333]root@metin2:/usr/ports/devel/subversion # make install clean[/COLOR] [COLOR=#333333]You can have the repository created for you by defining[/COLOR] [COLOR=#333333]WITH_REPOSITORY_CREATION.[/COLOR] [COLOR=#333333]Make sure that:[/COLOR] [COLOR=#333333]* all your svn users are members of a common group[/COLOR] [COLOR=#333333]* this group is the group id of the db/ and locks/[/COLOR] [COLOR=#333333]subdirectories of your repository[/COLOR] [COLOR=#333333]* the above subdirectories are writable by this group[/COLOR] [COLOR=#333333]Many useful scripts will be installed into /usr/local/share/subversion[/COLOR] [COLOR=#333333]===> subversion-1.8.11 has known vulnerabilities:[/COLOR] [COLOR=#333333]subversion-1.8.11 is vulnerable:[/COLOR] [COLOR=#333333]subversion -- DoS vulnerabilities[/COLOR] [COLOR=#333333]CVE: CVE-2015-0251[/COLOR] [COLOR=#333333]CVE: CVE-2015-0248[/COLOR] [COLOR=#333333]CVE: CVE-2015-0202[/COLOR] [COLOR=#333333]WWW: [/COLOR][URL="https://vuxml.freebsd.org/freebsd/8e887b71-d769-11e4-b1c2-20cf30e32f6d.html"]https://vuxml.FreeBSD.org/freebsd/8e...f30e32f6d.html[/URL] [COLOR=#333333]1 problem(s) in the installed packages found.[/COLOR] [COLOR=#333333]=> Please update your ports tree and try again.[/COLOR] [COLOR=#333333]=> Note: Vulnerable ports are marked as such even if there is no update available.[/COLOR] [COLOR=#333333]=> If you wish to ignore this vulnerability rebuild with 'make DISABLE_VULNERABILITIES=yes'[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make[1]: stopped in /usr/ports/devel/subversion[/COLOR] [COLOR=#333333]*** Error code 1[/COLOR] [COLOR=#333333]Stop.[/COLOR] [COLOR=#333333]make: stopped in /usr/ports/devel/subversion[/COLOR][FONT=fixedsys] [/FONT]


FreeBSD Sistemlerde Metin2 Sunucusu Kurulumu ve 'Gmake Kuramayanlar, Source Build Edemeyenler' Kılavuzu

Metin2 sunucularının FreeBSD sistemlerde kurulumu sırasında bazı kullanıcılar 'gmake' hatası ile karşılaşabilmektedir. Bu durum genellikle gerekli derleme araçlarının eksik veya yanlış yapılandırılması sonucunda ortaya çıkar. Bu makalede FreeBSD tabanlı bir sistemde Metin2 sunucusu kurulumunu güvenli ve sorunsuz şekilde nasıl yapacağınızı adım adım anlatacağız.

FreeBSD Sistemi Hazırlığı
FreeBSD, Linux'a göre farklı bir mimariye sahiptir. Bu nedenle bazı paketler doğrudan çalışmayabilir veya farklı yollarla derlenmelidir. İlk olarak sisteminizi güncelleyin:

Kod:
sudo freebsd-update fetch[BR][/BR]sudo freebsd-update install


Gerekli Derleme Araçlarını Kurun
Metin2 kaynak kodları genellikle GNU make (gmake) ile derlenir. Eğer gmake yüklü değilse,_ports veya pkg üzerinden yükleyin:

Kod:
pkg install devel/gmake


Ayrıca gcc veya clang derleyicileri, boost kütüphaneleri gibi diğer bağımlılıkları da yüklemeniz gerekebilir:

Kod:
pkg install lang/gcc[BR][/BR]pkg install devel/boost-libs[BR][/BR]pkg install databases/mysql80-server[BR][/BR]pkg install lang/python38


Port Sistemi ile Paket Yükleme
FreeBSD'nin güçlü yanlarından birisi 'ports' sistemidir. Metin2 sunucu bağımlılıklarını ports üzerinden derlemek bazen daha stabil sonuçlar verebilir. Ports dizinine gidip gmake'i derleyin:

Kod:
cd /usr/ports/devel/gmake[BR][/BR]make config[BR][/BR]make install clean


Metin2 Kaynak Kodlarını Derleme
Derleme öncesi gmake komutunu kontrol edin:

Kod:
which gmake[BR][/BR]gmake --version


Her şey doğruysa, Metin2 source dosyalarını açın ve derlemeye başlayın:

Kod:
cd /path/to/metin2/src[BR][/BR]gmake


Hata Alıyorsanız
Eğer hala gmake hatası alıyorsanız, PATH değişkeninizde '/usr/local/bin' dizininin olduğundan emin olun. Gerekirse .bashrc ya da .profile dosyanıza PATH ekleyin:

Kod:
export PATH=/usr/local/bin:$PATH


FreeBSD Güvenlik ve Performans Ayarları
FreeBSD'de jail sistemi sayesinde Metin2 sunucularını izole ederek daha güvenli hale getirebilirsiniz. Ayrıca pf firewall ayarları ile gelen bağlantıları filtreleyebilirsiniz:

Kod:
service pf start[BR][/BR]pfctl -f /etc/pf.conf


Sonuç
FreeBSD üzerinde Metin2 sunucu kurulumu biraz teknik bilgi gerektirse de, doğru adımlarla tamamen mümkün ve güvenlidir. Bu kılavuz sayesinde gmake hatasını aşarak başarıyla derleme yapabilirsiniz. Daha fazla yardım için Metin2Lobby forumuna göz atabilirsiniz.


Setting up Metin2 Server on FreeBSD Systems for Users Who Cannot Install gmake or Build from Source

During the setup of Metin2 servers on FreeBSD systems, some users may encounter 'gmake' errors. This usually occurs due to missing or incorrectly configured build tools. In this article, we will explain step by step how to set up a Metin2 server on a FreeBSD-based system safely and without issues.

Preparing Your FreeBSD System
FreeBSD has a different architecture compared to Linux. Therefore, some packages might not work directly or need to be compiled differently. First, update your system:

Kod:
sudo freebsd-update fetch[BR][/BR]sudo freebsd-update install


Install Required Build Tools
Metin2 source codes are generally compiled with GNU make (gmake). If gmake is not installed, you can install it via ports or pkg:

Kod:
pkg install devel/gmake


Additionally, you may need other dependencies like gcc or clang compilers, and boost libraries:

Kod:
pkg install lang/gcc[BR][/BR]pkg install devel/boost-libs[BR][/BR]pkg install databases/mysql80-server[BR][/BR]pkg install lang/python38


Installing Packages via Port System
One of FreeBSD's strengths is its 'ports' system. Compiling Metin2 server dependencies through ports can sometimes yield more stable results. Navigate to the ports directory and compile gmake:

Kod:
cd /usr/ports/devel/gmake[BR][/BR]make config[BR][/BR]make install clean


Compiling Metin2 Source Code
Before compiling, check the gmake command:

Kod:
which gmake[BR][/BR]gmake --version


If everything is correct, open the Metin2 source files and start compiling:

Kod:
cd /path/to/metin2/src[BR][/BR]gmake


If You Encounter Errors
If you still get a gmake error, ensure that the '/usr/local/bin' directory is included in your PATH variable. If necessary, add PATH to your .bashrc or .profile file:

Kod:
export PATH=/usr/local/bin:$PATH


FreeBSD Security and Performance Settings
With FreeBSD's jail system, you can isolate your Metin2 servers to enhance security. Additionally, you can filter incoming connections using pf firewall rules:

Kod:
service pf start[BR][/BR]pfctl -f /etc/pf.conf


Conclusion
Setting up a Metin2 server on FreeBSD requires some technical knowledge but is fully possible and secure when done correctly. With this guide, you can overcome gmake errors and successfully compile your project. For further assistance, visit the Metin2Lobby forums.
 

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

Geri
Üst Alt