طریقه نصب فایل ها با پسوند tgz در Ubuntu
سلام درود بر دوستان
من یه Ubuntu روی سیستم دارم که میخام نرم افزار Micromegas روی تون نصب کنم
طریقه نصب هم خود سایت نوشته
ولی چون زیاد با لینوکس کار نکردم به مشکل خوردم
توضیحاتی که برا نصب نوشته
The compressed File micromegas_5.2.4.tgz is about 13Mb. DOWNLOAD
micromegas_5.2.4 was tested for Linux and Darwin.
First unpack the file, for example tar -zxvf micromegas_5.2.4.tgz
This will create a directory called micromegas_5.2.4
I. General Installation
In this directory you should first launch,
gmake (If you do not have 'gmake' use 'make' instead)
The command gmake should generate files with compilers flags and compile
CalcHEP_src/bin/s_calchep
sources/micromegas.a
Possible problems are discussed in Section VI below.
II. The MSSM (for a general description of all the features go here)
To work with the MSSM go to the MSSM directory.
To generate the executable use
<gmake main=<source file
where <source file> is either a C or Fortran file, for example main.c or main.F
To launch the excutable main.c
main input/.
Where input is either a set of input parameters r the name of a data file (for example mssm1.par) according to the option chosen in main.c. In both cases instructions are given on the screen.
کسی میتونه راهنمایی کنه ؟
8 پاسخ
پکیج را با دستور زیر نصب کردم
sudo apt-get install libx11-dev
و پیغام زیررا نشون میده
mahdi@mahdi-X501A:~$ sudo apt-get install libx11-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libx11-dev
پیغامی که در نهایت میده unable to locate pakage libx11-dev
چجوری میشه این پیغام را برطرف کرد؟
سلام مجدد
یه پکیج روی سیستم شما نصب نیست اسم اون پکیج رو با دستور apt نصب کنید و دو مرحله آخر رو تکرار کنید
ممنون
<gmake main=<source file این دستور را اجرا کردم پیغام زیر را نشون داد
Warning:!!! CalcHEP has compiled without X11.
It means that CalcHEP can only be used in 'blind' mode. (See manual).
To use CalcHEP in interactive mode, install the package
libX11-devel for Fedora/Scientific, Darwin(MAC)
libX11-dev for Ubuntu/Debian
xorg-x11-devel for SUSE
and recompile CalcHEP by
make clean
make
make[1]: Leaving directory '/home/mahdi/Downloads/micromegas_5.2.4/CalcHEP_src'
make -C sources
make[1]: Entering directory '/home/mahdi/Downloads/micromegas_5.2.4/sources'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/mahdi/Downloads/micromegas_5.2.4/sources'
mahdi@mahdi-X501A:~/Downloads/micromegas_5.2.4$
و در آخر دستور main/. رااجرا کردم و پیغام زیررا نشون داد
bash: ./main: No such file or directory
اینترنت را بررسی کردم متصل هست
سلام به شما دوست عزیز
این یه فایل فشرده شده مثل زیپ هستش که باید توی اون محلی که فایل قرار داره ترمینال رو باز کنید و دستور
tar -zxvf micromegas_5.2.4.tgz
رو توی ترمینال بنویسید
این باعث میشه که فایل شما از حالت فشرده خارج بشه و توی یه پوشه به اسم همون برنامه ریخته بشه.
بعد باید با ترمینال برید توی اون پوشه با دستور
cd micromegas_5.2.4
بعدش برای کامپایل شدن کد ها دستور make یا gmake رو بزنید تا کدها کامپایل بشه البته برای این که فایل اجرایی بتونید درست کنید باید دستور
<gmake main=<source file
رو بزنید که به جای source file می تونید فایل main.c یا main.f که داخل پوشه هست رو بهش بدید
بعد از این کار می تونید با استفاده از دستور
./main
برنامه رو اجرا کرده و ورودی های لازم رو بهش بدید
سلام ، همیشه قبل از اینکه پکیجی رو روی سیستم چه به صورت دستی چه با Package Manager هایی مثل APT یا YUM نصب کنید پیشنهاد می کنم دستور apt update و apt upgrade رو اجرا کنید تا سیستم و پکیج هاش بروز رسانی بشه.
من چند روزیه درگیر همین نصب برنامه هستم
فعلا موفق به نصب این برنامه نشدم
اگه امکانش هست یکی فایل راهنمای نصب برام بفرستین
من طبق دستورات شما انجام دادم
هنوز نتونستم جواب بگیرم
نسخه Ubuntu 17.10
سلام از این که به اینترنت متصل هستید مطمئن شوید و دوباره سعی کنید. چون برای من این دستور به درستی کار می کنه.