request for help with Linux Compilation error

Joined
Apr 22, 2012
Messages
343
Reaction score
14
I am relatively new to Linux. Need your help with the following error

I am trying to compile on a remote server(using putty to login)

http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz

I have downloaded the .tar.gz file.

The instruction on the website says as follows

Basics

Get the source code from the links above, extract the files, enter the directory and run make to build the program. However, see the recommend build one-liners below.

To install the program to /usr/bin do make PREFIX=/usr install as root.

The README file, the instruction says

Type 'make' to build the program.
Do 'make install' to install the program to /usr/local/bin.


When I execute I get the following message

root@mysbox:~/mktorrent-1.0# make
cc -O2 -Wall prefix.c -o prefix
make: cc: Command not found
make: *** [prefix] Error 127

If I type the following

root@mysbox:~/mktorrent-1.0# ./configure
-bash: ./configure: No such file or directory


How do I compile?. Appreciate your help.

Thanks
 

polyglob

Senior Member
Joined
Jun 24, 2009
Messages
1,045
Reaction score
139
Which distro?

cc not found means you don't have the development tools installed. Use your distro's package manager to install them.

Actually, your distro ought to have some BT tools already packaged. Should not need to compile.
 

davidktw

Arch-Supremacy Member
Joined
Apr 15, 2010
Messages
13,549
Reaction score
1,302
I am relatively new to Linux. Need your help with the following error

I am trying to compile on a remote server(using putty to login)

http://downloads.sourceforge.net/mktorrent/mktorrent-1.0.tar.gz

I have downloaded the .tar.gz file.

The instruction on the website says as follows



The README file, the instruction says




When I execute I get the following message



If I type the following




How do I compile?. Appreciate your help.

Thanks

gcc is what u need. For Debian/Ubuntu, use apt-get install build-essential, for redhat based system, use yum groupinstall 'Development Tools'

That should get u the basic building tools for building projects. Sufficient or not, u will need to read more of the project documentation. Projects normally have optional or mandatory 3rd partylibraries or tools requirement and these at times are detected by build scripts
 
Joined
Apr 22, 2012
Messages
343
Reaction score
14
gcc is what u need. For Debian/Ubuntu, use apt-get install build-essential, for redhat based system, use yum groupinstall 'Development Tools'

That should get u the basic building tools for building projects. Sufficient or not, u will need to read more of the project documentation. Projects normally have optional or mandatory 3rd partylibraries or tools requirement and these at times are detected by build scripts

Thanks David
 
Joined
Apr 22, 2012
Messages
343
Reaction score
14
Which distro?

cc not found means you don't have the development tools installed. Use your distro's package manager to install them.

Actually, your distro ought to have some BT tools already packaged. Should not need to compile.

Ubuntu. It is is not normal distribution as the admin removed many stuffs.
I followed David's inputs. It worked. Thanks anyway.
 
Important Forum Advisory Note
This forum is moderated by volunteer moderators who will react only to members' feedback on posts. Moderators are not employees or representatives of HWZ Forums. Forum members and moderators are responsible for their own posts. Please refer to our Community Guidelines and Standards and Terms and Conditions for more information.
Top