ubuntu (compiling error(?)) compilation error ghc?

10 replies [Last post]
jrs275
User offline. Last seen 13 years 45 weeks ago. Offline
Joined: 2010-05-16
Posts: 5

Hi im new around here, im mexican, so, im sorry about the ortographic errors.

em... here my problem Smile

jrs275@jrs275-laptop:~$ sudo su
[sudo] password for jrs275:
root@jrs275-laptop:/home/jrs275# cd /home/jrs275/hedgewars-src-0.9.13
root@jrs275-laptop:/home/jrs275/hedgewars-src-0.9.13# cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX="install_prefix" -DDATA_INSTALL_DIR="data_dir"
-- Building Release
CMake Error at gameServer/CMakeLists.txt:4 (message):
Cannot find GHC

-- Configuring incomplete, errors occurred!
root@jrs275-laptop:/home/jrs275/hedgewars-src-0.9.13#

jrs275
User offline. Last seen 13 years 45 weeks ago. Offline
Joined: 2010-05-16
Posts: 5

Thank you

jrs275
User offline. Last seen 13 years 45 weeks ago. Offline
Joined: 2010-05-16
Posts: 5

Ok im trying installing ghc Smile if that was my problem.... Smile i didnt knew it was a program jeje Smile

Smaxx
Smaxx's picture
User offline. Last seen 12 years 51 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

just add to the cmake line (with a leading space so it's not attached to the other setting:

-DWITH_SERVER=false

bananaoomarang
bananaoomarang's picture
User offline. Last seen 9 years 33 weeks ago. Offline
Joined: 2009-10-16
Posts: 82

Also building as root is a BAD idea. Only Make install with sudo. Run make and cmake as a normal user or you may run into some fiddly permission problems.

Pit has finaly returned. FINALY.

jrs275
User offline. Last seen 13 years 45 weeks ago. Offline
Joined: 2010-05-16
Posts: 5

Thank you both answers, the cause was i hadnt a requited software, ive already installed hedgewars, now theres just a little problem, i dont know how to run Smile, maybe theres a file to run, but i cant find it, and i cant find a post about it. would you help please? Smile

nemo
nemo's picture
User offline. Last seen 3 weeks 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

jsr275, hedgewars is part of lucid, you don't need to build unless you want to build HEAD.

As for where it installs be default, there should be a file called hedgewars somewhere probably /usr/local/bin/hedgewars if you weren't installing it to your home (which I recommend for building on your own).

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

jrs275
User offline. Last seen 13 years 45 weeks ago. Offline
Joined: 2010-05-16
Posts: 5

nemo, first of all, thanks for anwering, emmm i didnt understood the thing about "build", i dont know what you mean. I installed the game in

Quote:
/home/******/hedgewars-src-0.9.13
but when i try to run with the file "hedgewars"(executable) located in
Quote:
/home/******/hedgewars-src-0.9.13/bin/hedgewars
this message shows up
Quote:
Failed to open data directory:
/home/******/hedgewars-src-0.9.13/install_prefix/bin/hedgewars/Data
Please check your installation
the folder "install_prefix" is locked by "root", i dont know whats wrong with this, i suppose i have to install it without the permission of root, but i dont know how. would you help please again? thank you.

nemo
nemo's picture
User offline. Last seen 3 weeks 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

Well, I can only imagine you ran sudo at some point in the install (you shouldn't have).
There is no way the files could have ended up owned by root otherwise.

Go ahead and fix w/ sudo chown, or, yes, reinstall.

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

nemo
nemo's picture
User offline. Last seen 3 weeks 6 days ago. Offline
Joined: 2009-01-28
Posts: 1861

But again. Why are you going to all this trouble? Just go to:
Applications->Ubuntu Software Centre

0.9.13 is part of Lucid Lynx

--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev

Smaxx
Smaxx's picture
User offline. Last seen 12 years 51 weeks ago. Offline
Joined: 2009-04-29
Posts: 391

Just to add: you don't have to install the game if you'd like to run it from within home (or change the install_prefix variable to another location).

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]