Help starting a server on Linux
#1
So I'm trying to host a server on a Raspberry Pi following this tutorial. 
Everything is going fine until I am asked to enter this:
sudo make server_install
I am greeted with the error below.
[Image: Xd9U1sK.jpg]
I'm totally new to using Linux so please forgive my ignorance on the subject, I'm simply following a tutorial. I've Googled it and found some similar issues, but have been unable to follow them.
Thank you. (and sorry for the 2 consecutive posts)
Thanks given by:
#2
The most important line of this is
make: clang++: Command not found

AC uses clang for compilation. You should just need to type
sudo apt-get install clang

Although it is possible that you may need to provide a version number as part of the package, so it could be "clang-3.4" as well.
Thanks given by:
#3
There is not need to install clang, just change the compiler on the makefile.
sed -i "s/clang++/g++/g" Makefile
Thanks given by: Million
#4
Just do make server not make server_install?
Thanks given by:
#5
Same error D:

(25 Mar 15, 06:06PM)PhaNtom Wrote: The most important line of this is

make: clang++: Command not found

AC uses clang for compilation.  You should just need to type

sudo apt-get install clang

Although it is possible that you may need to provide a version number as part of the package, so it could be "clang-3.4" as well.

Same error D:

(25 Mar 15, 06:06PM)PhaNtom Wrote: The most important line of this is

make: clang++: Command not found

AC uses clang for compilation.  You should just need to type

sudo apt-get install clang

Although it is possible that you may need to provide a version number as part of the package, so it could be "clang-3.4" as well.

(25 Mar 15, 06:21PM)Jpablon Wrote: There is not need to install clang, just change the compiler on the makefile.

sed -i "s/clang++/g++/g" Makefile

As with this as well, the error persists.
Thanks given by:
#6
What operating system are you running on the rpi?
Thanks given by:
#7
Mousikos
(25 Mar 15, 07:20PM)Mousikos Wrote: What operating system are you running on the rpi?

Debian
Thanks given by:
#8
(25 Mar 15, 07:40PM)mal Wrote: Debian

What version of debian?

https://packages.debian.org/stable/devel/clang

Are you sure you installed the package?

Try typing in "clang --help"
Thanks given by:
#9
(25 Mar 15, 07:43PM)Mousikos Wrote:
(25 Mar 15, 07:40PM)mal Wrote: Debian

What version of debian?



https://packages.debian.org/stable/devel/clang

Are you sure you installed the package?

Try typing in "clang --help"

Ah so sorry didn't notice an error in the installation of clang.
[Image: MZJu9GV.jpg]
Thanks given by:
#10
Did you try "apt-get update", as suggested?
Thanks given by:
#11
(25 Mar 15, 09:29PM)Mousikos Wrote: Did you try "apt-get update", as suggested?
Nope, don't like doing too much stuff I don't understand :P
I'll keep you updated, the help is really appreciated.

Edit:
(25 Mar 15, 09:29PM)Mousikos Wrote: Did you try "apt-get update", as suggested?
[Image: Zw6lBcz.png]


The result.
Thanks given by:
#12
sudo apt-get update
Thanks given by:
#13
(25 Mar 15, 09:47PM)Million Wrote: sudo apt-get update

Done! Clang help still isn't working though command not found.
Thanks given by:
#14
stop forcing him to install clang.
Thanks given by:
#15
Why? He has to compile a copy for his system, unless there's already an executable for rpi floating around.

mal, after you `apt-get update`, did you try `apt-get install clang` again?
Thanks given by:
#16
There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?
Thanks given by:
#17
(25 Mar 15, 10:00PM)Mousikos Wrote: Why? He has to compile a copy for his system, unless there's already an executable for rpi floating around.

mal, after you `apt-get update`, did you try `apt-get install clang` again?

Just done that and tried to he make server_install thing again and I got this:
[Image: zOnj0WQ.png]
Thanks given by:
#18
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?

Supposedly clang is more efficient or something. That being said, I've tried compiling with gcc before and it gave me an error, and clang only gave me warnings.

Sorry, can you

sudo make server_install |curl -F 'sprunge=<-' http://sprunge.us

and then paste the link here?
Thanks given by:
#19
(25 Mar 15, 11:20PM)Mousikos Wrote:
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?

Supposedly clang is more efficient or something. That being said, I've tried compiling with gcc before and it gave me an error, and clang only gave me warnings.


Sorry, can you

sudo make server_install |curl -F 'sprunge=<-' http://sprunge.us

and then paste the link here?

Yep, will do but I think I'm gonna call it a day for now.
Thanks given by:
#20
I am beginning to think OP may just be missing the dev versions of the requisites they need...
Thanks given by:
#21
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?

Why not?
Two compilers is always better than one :)
Thanks given by:
#22
(25 Mar 15, 11:20PM)Mousikos Wrote:
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?

Supposedly clang is more efficient or something. That being said, I've tried compiling with gcc before and it gave me an error, and clang only gave me warnings.



Sorry, can you

sudo make server_install |curl -F 'sprunge=<-' http://sprunge.us

and then paste the link the link .

Got this URL http://sprunge.us/EiTb along with a load of errors. If you'd like to see the errors I can send them.
Thanks given by:
#23
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?
Usually you need the package dev-essentials to get gcc right? So why not install clang as well? And there are reasons why AC moved to clang :3
Thanks given by:
#24
(26 Mar 15, 11:57PM)Ronald_Reagan Wrote:
(25 Mar 15, 10:07PM)Jpablon Wrote: There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?
Usually you need the package dev-essentials to get gcc right? So why not install clang as well? And there are reasons why AC moved to clang :3

Well afaik gcc can be used without problems now and there was not any trouble on the server just on the client.

Im not raging on clang, but OP does not seem to use a compiler frequently, so force him to install clang, in my opinion, is not a good idea. Why do you want to install a program that will be used only one time?. It does not have any sense to me.


btw: can we use gcc as default compiler now?
Thanks given by:
#25
I created a clean installed Ubuntu box and was able to compile (Should be similar enough). I'll run though every command done.
First thing's first:

> sudo apt-get update

Enter the directory you want to unpack the AC code (I.e. /home/user/AC). From there do

> wget https://github.com/assaultcube/AC/archive/master.zip
> unzip master.zip
> rm master.zip

We have our files, now we need to set up our dependencies and compiler.

> sudo apt-get install clang
> sudo apt-get install libsdl1.2debian libsdl-image1.2 zlib1g libogg0 libvorbis0a libopenal1 libcurl3 zlib1g-dev

Coolbeans. Now all you have to do is

> cd AC-Master/source/src
> make server

Should work. From there, you can run your server with server.sh from the main AC-Master folder or do as you please. Good luck, and don't forget to port forward if you want to go publicly!
Thanks given by:
#26
(27 Mar 15, 04:19AM)X-Ray_Dog Wrote: I created a clean installed Ubuntu box and was able to compile (Should be similar enough). I'll run though every command done.
First thing's first:

> sudo apt-get update

Enter the directory you want to unpack the AC code (I.e. /home/user/AC). From there do

> wget https://github.com/assaultcube/AC/archive/master.zip
> unzip master.zip
> rm master.zip

We have our files, now we need to set up our dependencies and compiler.

> sudo apt-get install clang
> sudo apt-get install libsdl1.2debian libsdl-image1.2 zlib1g libogg0 libvorbis0a libopenal1 libcurl3 zlib1g-dev

Coolbeans. Now all you have to do is

> cd AC-Master/source/src
> make server

Should work. From there, you can run your server with server.sh from the main AC-Master folder or do as you please. Good luck, and don't forget to port forward if you want to go publicly!

Thanks. Would I need to do all that despite the fact I have been following the instructions linked below? If not, where shall I start with your instructions.


http://developer-blog.net/en/hardware-2/...pberry-pi/
Thanks given by:
#27
Interesting comparison of GCC vs Clang (sure, it's biased, but w/e): http://clang.llvm.org/comparison.html#gcc

@mal: if you get 404 errors whenever attempting to apt-get anything and you've checked your internet connection, then the mirror you're using is shite. Modify sources.list to a better mirror.

You can just skip the use of clang and stick to gcc if you want. Instead of typing "make", try "make CXX=g++"
Thanks given by:
#28
(27 Mar 15, 11:40AM)RandumKiwi Wrote: Interesting comparison of GCC vs Clang (sure, it's biased, but w/e): http://clang.llvm.org/comparison.html#gcc

@mal: if you get 404 errors whenever attempting to apt-get anything and you've checked your internet connection, then the mirror you're using is shite. Modify sources.list to a better mirror.

You can just skip the use of clang and stick to gcc if you want. Instead of typing "make", try "make CXX=g++"
Another error :( http://imgur.com/f7GpJCv
Thanks given by:
#29
Look at what you type. It's g++, not ++

edit:
RK, are you sure it's not CXX=g++ make server_install
Thanks given by:
#30
(27 Mar 15, 05:23PM)SKB Wrote: Look at what you type. It's g++, not ++

edit:
RK, are you sure it's not CXX=g++ make server_install

Oops thanks, doesn't seem to have fixed it (both way have the same result).

http://imgur.com/TAIS9Gx
Thanks given by: