Posts: 26
Threads: 3
Joined: Mar 2015
25 Mar 15, 05:51PM
(This post was last modified: 25 Mar 15, 05:58PM by mal.)
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:
I am greeted with the error below.
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)
Posts: 729
Threads: 16
Joined: Dec 2012
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.
Posts: 101
Threads: 2
Joined: Sep 2011
There is not need to install clang, just change the compiler on the makefile.
sed -i "s/clang++/g++/g" Makefile
Posts: 525
Threads: 10
Joined: Jun 2013
25 Mar 15, 06:42PM
(This post was last modified: 25 Mar 15, 06:42PM by +f0r3v3r+.)
Just do make server not make server_install?
Posts: 26
Threads: 3
Joined: Mar 2015
25 Mar 15, 07:00PM
(This post was last modified: 25 Mar 15, 07:03PM by mal.)
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.
Posts: 1,033
Threads: 85
Joined: Oct 2013
What operating system are you running on the rpi?
Posts: 26
Threads: 3
Joined: Mar 2015
Mousikos
(25 Mar 15, 07:20PM)Mousikos Wrote: What operating system are you running on the rpi?
Debian
Posts: 1,033
Threads: 85
Joined: Oct 2013
25 Mar 15, 07:43PM
(This post was last modified: 25 Mar 15, 07:45PM by Mousikos.)
(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"
Posts: 26
Threads: 3
Joined: Mar 2015
25 Mar 15, 09:17PM
(This post was last modified: 25 Mar 15, 09:28PM by mal.)
(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.
Posts: 1,033
Threads: 85
Joined: Oct 2013
Did you try "apt-get update", as suggested?
Posts: 26
Threads: 3
Joined: Mar 2015
25 Mar 15, 09:32PM
(This post was last modified: 25 Mar 15, 09:39PM by mal.)
(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?
The result.
Posts: 484
Threads: 11
Joined: Feb 2012
Posts: 26
Threads: 3
Joined: Mar 2015
(25 Mar 15, 09:47PM)Million Wrote: sudo apt-get update
Done! Clang help still isn't working though command not found.
Posts: 101
Threads: 2
Joined: Sep 2011
stop forcing him to install clang.
Posts: 1,033
Threads: 85
Joined: Oct 2013
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?
Posts: 101
Threads: 2
Joined: Sep 2011
There is another old compiler called gcc, and I guess it's already installed on his system. So, why to install clang?
Posts: 26
Threads: 3
Joined: Mar 2015
(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:
Posts: 1,033
Threads: 85
Joined: Oct 2013
25 Mar 15, 11:20PM
(This post was last modified: 25 Mar 15, 11:22PM by Mousikos.)
(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?
Posts: 26
Threads: 3
Joined: Mar 2015
(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.
Posts: 525
Threads: 10
Joined: Jun 2013
I am beginning to think OP may just be missing the dev versions of the requisites they need...
Posts: 400
Threads: 37
Joined: Jun 2010
(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 :)
Posts: 26
Threads: 3
Joined: Mar 2015
(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.
Posts: 3,462
Threads: 72
Joined: Jun 2010
26 Mar 15, 11:57PM
(This post was last modified: 26 Mar 15, 11:57PM by Ronald_Reagan.)
(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
Posts: 101
Threads: 2
Joined: Sep 2011
(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?
Posts: 1,049
Threads: 55
Joined: Nov 2010
27 Mar 15, 04:19AM
(This post was last modified: 27 Mar 15, 04:22AM by X-Ray_Dog.)
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!
Posts: 26
Threads: 3
Joined: Mar 2015
(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/
Posts: 1,039
Threads: 77
Joined: Jun 2010
27 Mar 15, 11:40AM
(This post was last modified: 27 Mar 15, 11:47AM by RandumKiwi.)
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++"
Posts: 26
Threads: 3
Joined: Mar 2015
(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
Posts: 256
Threads: 15
Joined: Jun 2010
27 Mar 15, 05:23PM
(This post was last modified: 27 Mar 15, 05:26PM by SKB.)
Look at what you type. It's g++, not ++
edit:
RK, are you sure it's not CXX=g++ make server_install
Posts: 26
Threads: 3
Joined: Mar 2015
(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
|