Question on compiling with Linux

Aeromesi

Custom Instance Maniac
Messages
821
Points
0
Age
33
Location
Custom Instances
Discord
Aeromesi#0293
Github
http://www.github.com/aeromesi
Emulator
Okay so, I used su (superuser privilages) on my root account, and typed in the command line with ssh

" ./configure --enable-packetver=20140115" I try make sql etc and it says "bash: ./configure: /bin/sh^M: bad interpreter: No such file or directory

"

What could the problem be?

An image is attached.

Thanks guys
Untitled.png

 
Try to execute
./configure 

make clean && make sql

if 64 bit

./configure --enable-64bit

make clean && make sql

if cannot compile no such directory.

chmod a+x ./configure

./configure

make clean && make sql

 
just open configure file

edit  /bin/sh to /bin/bash then try again
default_smile.png


be sure to set the correct permistion to chmod a+X ./configure

 
Type following commands to fix that problem

Code:
vi configure:set ff=unix:wq
Then if it says permission denied, type following command
Code:
chmod a+x configure
And your problem will be fixed and let us know if it has fixed your problem.
 
Last edited by a moderator:
Where do I type vi configure in? /bin/ or what?
type all thos commands from emulator folder,if your emulator is in /root/hercules , go to that folder via

cd /root/hercules

and type the commands mentioned in above post.

 
yep but where do i edit?

Check the new attachment, i have the file open but I don't know where to put the command you mentioned, i understand i have to edit or add something then save the file and exit vi

Untitled.png

 
Last edited by a moderator:
Open configure via

vi configure

this will open up the file, dont do anything just type

:set ff=unix

then type

:wq

when typing :set ff=unix, this will show at bottom of line(but its not getting inserted into file, its setting fileformat to unix,

OR

simply, copy those 3 commands at once from above post, go to putty in ur emulator folder, and paste it via right click, and press enter

 
Okay got it working but now this...
 

checking for suffix of executables... configure: error: in `/opt/hercules':
configure: error: cannot compute suffix of executables: cannot compile and link
See `config.log' for more details
root@euve32987:/opt/hercules#
Sorry but I haven't used linux in forever. =.=
 
Last edited by a moderator:
Could you show us what is in the config.log file?

 
Last edited by a moderator:
Back
Top