View previous topic :: View next topic |
Author |
Message |
Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 13, 2014 11:11 am Post subject: How to compile a program |
|
|
Hello,programming language packages are often downloaded as source (makefile) in the format filename.tar.gz,how to compile them?I think that people use Mingw but I have no idea o, how to use it,it asks you to choose which of the packages to install,and it has no GUI to compile source code.
I'm trying to compile the following packages:
Ruby 2.1.2 https://www.ruby-lang.org/en/downloads/
Lua 5.3.0 (just to test) http://www.lua.org/work/
Thanks for the help.
|
|
Back to top |
|
|
atom0s Moderator Reputation: 198
Joined: 25 Jan 2006 Posts: 8516 Location: 127.0.0.1
|
Posted: Fri Jun 13, 2014 1:42 pm Post subject: |
|
|
Most packages like these come with a README file that explains what you need to do to compile them. For example, Lua has its files all hosted online as well, their readme is found here:
http://www.lua.org/manual/5.2/readme.html
However if you are entirely new to compiling anything I would recommend that you read over some tutorials about the compiler you land up choosing to use.
_________________
- Retired. |
|
Back to top |
|
|
Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Fri Jun 13, 2014 5:19 pm Post subject: |
|
|
atom0s wrote: | Most packages like these come with a README file that explains what you need to do to compile them. For example, Lua has its files all hosted online as well, their readme is found here:
http://www.lua.org/manual/5.2/readme.html
However if you are entirely new to compiling anything I would recommend that you read over some tutorials about the compiler you land up choosing to use. |
The build process confuses me a bit,what do they mean by 'Do "make" and see if your platform is listed.'?Do I have to do it in a command prompt?What is a 'Terminal'?
If it's just something like "compiler.exe" [parameter] "makefile_address" (usage like upx) then what compiler can I use (MinGW just asks you to choose what to install).
Thanks for taking the time to answer.
|
|
Back to top |
|
|
justa_dude Grandmaster Cheater Reputation: 23
Joined: 29 Jun 2010 Posts: 891
|
Posted: Fri Jun 13, 2014 5:40 pm Post subject: |
|
|
Redone wrote: | The build process confuses me a bit,what do they mean by 'Do "make" and see if your platform is listed.'?Do I have to do it in a command prompt?What is a 'Terminal'?
If it's just something like "compiler.exe" [parameter] "makefile_address" (usage like upx) then what compiler can I use (MinGW just asks you to choose what to install).
Thanks for taking the time to answer. |
If you're building a lot of UNIX-style stuff, you will need the make tool and probably also autoconf/m4. Alternatively, you could download cmake and learn how to use it. It can build from build scripts into most other formats, and can also export project files for Visual Studio.
_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on... |
|
Back to top |
|
|
paupav Master Cheater Reputation: 13
Joined: 15 Apr 2011 Posts: 315 Location: P. Sherman 42, Wallaby Way, Sydney
|
Posted: Fri Aug 01, 2014 6:41 pm Post subject: Re: How to compile a program |
|
|
Redone wrote: | Hello,programming language packages are often downloaded as source (makefile) in the format filename.tar.gz,how to compile them?I think that people use Mingw but I have no idea o, how to use it,it asks you to choose which of the packages to install,and it has no GUI to compile source code.
I'm trying to compile the following packages:
Ruby 2.1.2 https://www.ruby-lang.org/en/downloads/
Lua 5.3.0 (just to test) http://www.lua.org/work/
Thanks for the help. |
./configure
sudo make
sudo make install
You have to have make installed.
|
|
Back to top |
|
|
|