hippich / Bitcoin-Poker-Room

Sources for Bitcoin Poker Room.
http://betco.in
Other
132 stars 88 forks source link

Installation Problem #137

Open rstiltskin opened 10 years ago

rstiltskin commented 10 years ago

Hi,

I am having difficulty installing the poker room by following the README. When I use command 'perl Makefile.PL' , I get 'no such file or directory'. I did copy the zip file from git hub and unzipped into my home directory, but the install script doesn't detect it.

Can you help?

hippich commented 10 years ago

Let's start with what OS you using?

rstiltskin commented 10 years ago

Hi,

I have installed Ubuntu 11.04 from the old-releases repo.

much appreciated

cheers

On Sun, Nov 17, 2013 at 9:05 PM, Pavel Karoukin notifications@github.comwrote:

Let's start with what OS you using?

— Reply to this email directly or view it on GitHubhttps://github.com/hippich/Bitcoin-Poker-Room/issues/137#issuecomment-28671078 .

rstiltskin commented 10 years ago

Here are the specific results from the command line:

userx@userx-desktop:~$ cd '/home/userx/Bitcoin-Poker-Room'

userx@userx-desktop:~/Bitcoin-Poker-Room$ perl Makefile.PL

Can't locate inc/Module/Install.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl .) at Makefile.PL line 4. BEGIN failed--compilation aborted at Makefile.PL line 4.

Suggestions?

hippich commented 10 years ago

This error suggests Module::Install is not installed. Did you run "sudo apt-get install libmodule-install-perl" command before? If no - make sure to follow all steps one by one, because I remember writing these steps as I was installing whole thing on barebone Ubuntu 11.10 system.

Please update me with results.

rstiltskin commented 10 years ago

It figures, I missed that one; though i had installed it before on the last fresh install. It is now installing dependencies but as I watch; it appears many are missing or of an older version than required. Would the following warning from the auto cpan install have anything to do with the missing modules?

Autoconfigured everything but 'urllist'. Please call 'o conf init urllist' to configure your CPAN server(s) now!

rstiltskin commented 10 years ago

OK, this is the output after 'perl Makefile.PL:

userx@userx-desktop:~/Bitcoin-Poker-Room$ sudo perl Makefile.PL include /home/userx/Bitcoin-Poker-Room/inc/Module/Install.pm include inc/Module/Install/Metadata.pm include inc/Module/Install/Base.pm include inc/Module/Install/Makefile.pm Cannot determine perl version info from lib/Room.pm include inc/Module/Install/Catalyst.pm * Module::Install::Catalyst Please run "make catalyst_par" to create the PAR package! * Module::Install::Catalyst finished. include inc/Module/Install/Scripts.pm include inc/Module/Install/AutoInstall.pm include inc/Module/Install/Include.pm include inc/Module/AutoInstall.pm * Module::AutoInstall version 1.03 * Checking for Perl dependencies... [Core Features]

rstiltskin commented 10 years ago

Well, I was able to manually install all the prerequisite modules except:

So I am stuck at this juncture.

hippich commented 10 years ago

Try manually installing these two via:

sudo cpan install Catalyst::Model::Bitcoin sudo cpan install CatalystX::DynamicComponent

and re-run perl Makefile.PL

rstiltskin commented 10 years ago

Ok progress,

I finally cleared this hurdle, what a pita! I was able to install the module "Catalyst::Model::Bitcoin" after I resolved a problem with module "Type::Tiny" via a cpan force install.

I had to manually build from source the module "CatalystX::DynamicComponent::ModelsFromConfig" on my box via make, make test, make install, after several attempts trying to install through cpan. Cpan couldn't seem to find the module on cpan.org even though it was there.

now going into the next phase.

Thanks for your help so far!

cheers

rstiltskin commented 10 years ago

I am a bit challenged when it comes to apache and learning as I go. In the README, when it states; "Copy room-sample.conf to room.conf", Is it implying that I should cut and paste the guts of "room-sample.conf" between the tags of the "VirtualHost" section of "room.conf"?

hippich commented 10 years ago

In this case I am talking about file in root folder of this project. I.e. just rename it but leave in the root of project. It is not connected to /etc/apache2/sites-available/room.conf

rstiltskin commented 10 years ago

Hey Pavel,

After entering command "sudo /etc/init.d/python-poker-network restart" I get the following output:

Stopping poker server ...start-stop-daemon: warning: failed to kill 2634: No such process done. Starting poker server : Removing stale pidfile /var/run/poker-network-server.pid Could not create API service! Bots are disabled, edit /etc/default/python-poker-network to enable them. poker-network

Then after the command "./script/room_server.pl -r -f" I get:

Couldn't instantiate component "Room::Model::PokerNetwork", "argument is not a module name"Compilation failed in require at /usr/local/share/perl/5.12.4/Catalyst/Restarter/Forking.pm line 20.

What's wrong?

Tarydium commented 10 years ago

A pain in the ass to install every dependency manually..... but im almost done

Tarydium commented 10 years ago

Same problem after the pain in the ass: Base class package "Catalyst::Model::DBIC::Schema" is empty. (Perhaps you need to 'use' the module which defines that package first, or make that module available in @INC (@INC contains: /home/felix/bitcoin_poker_room/Bitcoin-Poker-Room/script/../lib /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl .). at /home/felix/bitcoin_poker_room/Bitcoin-Poker-Room/script/../lib/Room/Model/PokerNetwork.pm line 4. BEGIN failed--compilation aborted at /home/felix/bitcoin_poker_room/Bitcoin-Poker-Room/script/../lib/Room/Model/PokerNetwork.pm line 4. Compilation failed in require at /usr/local/share/perl/5.12.4/Catalyst/Utils.pm line 308. Compilation failed in require at /usr/share/perl5/Catalyst/Restarter/Forking.pm line 20.

rstiltskin commented 10 years ago

CPAN was a PITA for me also.

You could try: cpan> install Bundle::CPAN

and then when its done: cpan> reload cpan

Then try reloading missing modules again.

BTW I never got it to work, I got stuck at the comment above yours.

regtable commented 10 years ago

i know this thread is a bit old but i am attempting to insatll from repo i get to sudo apt-get install memcached and recieve an error of similar to pokernetwork.pokernetwork.conf is ivalid or missing. where did i go wrong. and as you can imagine i get the same error for the next step