Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem importing beamjs_misultin #6

Open
sjanecki opened this issue Oct 7, 2011 · 7 comments
Open

problem importing beamjs_misultin #6

sjanecki opened this issue Oct 7, 2011 · 7 comments

Comments

@sjanecki
Copy link

sjanecki commented Oct 7, 2011

i have Beam.js. and it works OK. I want to test out beamjs_misultin (builded fine):

tereska@VBOXU114:~/dev/beamjs$ ls -l ../beamjs_misultin/ebin/
total 12
-rw-r--r-- 1 tereska tereska 273 2011-10-07 22:19 beamjs_misultin.app
-rw-r--r-- 1 tereska tereska 6020 2011-10-07 22:19 beamjs_misultin.beam

tereska@VBOXU114:/dev/beamjs$ ls -l ../beamjs_misultin/deps/misultin/ebin/
total 88
-rw-r--r-- 1 tereska tereska 396 2011-10-07 22:19 misultin.app
-rw-r--r-- 1 tereska tereska 9812 2011-10-07 22:19 misultin.beam
-rw-r--r-- 1 tereska tereska 17816 2011-10-07 22:19 misultin_http.beam
-rw-r--r-- 1 tereska tereska 11064 2011-10-07 22:19 misultin_req.beam
-rw-r--r-- 1 tereska tereska 6236 2011-10-07 22:19 misultin_socket.beam
-rw-r--r-- 1 tereska tereska 13584 2011-10-07 22:19 misultin_utility.beam
-rw-r--r-- 1 tereska tereska 8904 2011-10-07 22:19 misultin_websocket.beam
-rw-r--r-- 1 tereska tereska 2204 2011-10-07 22:19 misultin_ws.beam
tereska@VBOXU114:
/dev/beamjs$

tereska@VBOXU114:~/dev/beamjs$ ./beamjs -pa ../beamjs_misultin/ebin/ -pa ../beamjs_misultin/deps/misultin/ebin/ -mod http beamjs_misultin
beam.js>

beam.js> require('http');
Error: Cannot find module 'http'
beam.js>

Could you help me?
thanks!

@yrashk
Copy link
Member

yrashk commented Oct 7, 2011

AFAIR that piece of the documentation is outdated

Try this

./beamjs -jspath ../beamjs_misultin/lib -bundles erlang node_compat
stdlib commonjs -pa ../beamjs_misultin/ebin -pa
../beamjs_misultin/deps/misultin/ebin/

2011/10/7 Sławomir Janecki
[email protected]:

i have Beam.js. and it works OK. I want to test out beamjs_misultin (builded fine):

tereska@VBOXU114:~/dev/beamjs$ ls -l ../beamjs_misultin/ebin/
total 12
-rw-r--r-- 1 tereska tereska  273 2011-10-07 22:19 beamjs_misultin.app
-rw-r--r-- 1 tereska tereska 6020 2011-10-07 22:19 beamjs_misultin.beam

tereska@VBOXU114:/dev/beamjs$ ls -l ../beamjs_misultin/deps/misultin/ebin/
total 88
-rw-r--r-- 1 tereska tereska   396 2011-10-07 22:19 misultin.app
-rw-r--r-- 1 tereska tereska  9812 2011-10-07 22:19 misultin.beam
-rw-r--r-- 1 tereska tereska 17816 2011-10-07 22:19 misultin_http.beam
-rw-r--r-- 1 tereska tereska 11064 2011-10-07 22:19 misultin_req.beam
-rw-r--r-- 1 tereska tereska  6236 2011-10-07 22:19 misultin_socket.beam
-rw-r--r-- 1 tereska tereska 13584 2011-10-07 22:19 misultin_utility.beam
-rw-r--r-- 1 tereska tereska  8904 2011-10-07 22:19 misultin_websocket.beam
-rw-r--r-- 1 tereska tereska  2204 2011-10-07 22:19 misultin_ws.beam
tereska@VBOXU114:
/dev/beamjs$

tereska@VBOXU114:~/dev/beamjs$ ./beamjs -pa ../beamjs_misultin/ebin/ -pa ../beamjs_misultin/deps/misultin/ebin/ -mod http beamjs_misultin
beam.js>

beam.js> require('http');
Error: Cannot find module 'http'
beam.js>

Could you help me?
thanks!

Reply to this email directly or view it on GitHub:
#6

@sjanecki
Copy link
Author

sjanecki commented Oct 7, 2011

tereska@VBOXU114:~/dev/beamjs$ ./beamjs -jspath ../beamjs_misultin/lib -bundles erlang node_compat stdlib commonjs -pa ../beamjs_misultin/ebin -pa ../beamjs_misultin/deps/misultin/ebin/
beam.js> require('http');
Error: Cannot find module 'http'
beam.js> require('beamjs_misultin')
Error: Cannot find module 'beamjs_misultin'
beam.js> require('node_compat');
Error: Cannot find module 'node_compat'
beam.js>

maybe i'm doing something wrong?

@yrashk
Copy link
Member

yrashk commented Oct 7, 2011

is beamjs_misultin in your ~/dev ?

2011/10/7 Sławomir Janecki
[email protected]:

tereska@VBOXU114:~/dev/beamjs$ ./beamjs -jspath ../beamjs_misultin/lib -bundles erlang node_compat stdlib commonjs -pa ../beamjs_misultin/ebin -pa ../beamjs_misultin/deps/misultin/ebin/
beam.js> require('http');
Error: Cannot find module 'http'
beam.js> require('beamjs_misultin')
Error: Cannot find module 'beamjs_misultin'
beam.js> require('node_compat');
Error: Cannot find module 'node_compat'
beam.js>

maybe i'm doing something wrong?

Reply to this email directly or view it on GitHub:
#6 (comment)

@sjanecki
Copy link
Author

sjanecki commented Oct 7, 2011

yep

tereska@VBOXU114:~/dev$ ls
beamjs beamjs_misultin otp_src_R14B04

@sjanecki
Copy link
Author

sjanecki commented Oct 8, 2011

I've created clean virtual machine and it's all the same. check this out:

fresh install ubuntu 11.04 with all updates run on oracle virtual box

install packets

sudo apt-get install build-essential libcurses5-dev curl wget git libssl-dev scons strace mc

ERLANG install

cd ~
mkdir dev
wget http://www.erlang.org/download/otp_src_R14B04.tar.gz
tar zxvf otp_src_R14B04.tar.gz
cd otp_src_R14B04
./configure --enable-smp-support

it tells that will make erl without jinterface, odbc, wx, docs. thats OK

make
sudo make install
erl
Erlang R14B04 (erts-5.8.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.5 (abort with ^G)
1>

erlang is OK

#beamjs install
sudo apt-get install libtool autoconf automake uuid-dev
cd ~/dev
git clone https://github.com/beamjs/beamjs.git
cd beamjs
make
./beamjs
beam.js> console.log('OK');
OK
beam.js>

beamjs is OK

#beamjs_misultin install
cd ~/dev
git clone https://github.com/beamjs/beamjs_misultin.git
cd beamjs_misultin
make

compilaton was successful

run misultin

cd ~/dev/beamjs
./beamjs -jspath ../beamjs_misultin/lib -bundles erlang node_compat stdlib commonjs -pa ../beamjs_misultin/ebin -pa ../beamjs_misultin/deps/misultin/ebin/
beam.js> require('http');
Error: Cannot find module 'http'
beam.js> require('beamjs_misultin');
Error: Cannot find module 'beamjs_misultin'
beam.js> require('node_compat');
Error: Cannot find module 'node_compat'
beam.js>

please help me with this.
thanks

@yrashk
Copy link
Member

yrashk commented Oct 8, 2011

Sławomir, I will look into this soon

2011/10/8 Sławomir Janecki
[email protected]:

I've created clean virtual machine and it's all the same. check this out:

fresh install ubuntu 11.04 with all updates run on oracle virtual box

install packets

sudo apt-get install build-essential libcurses5-dev curl wget git libssl-dev scons strace mc

ERLANG install

cd ~
mkdir dev
wget http://www.erlang.org/download/otp_src_R14B04.tar.gz
tar zxvf otp_src_R14B04.tar.gz
cd otp_src_R14B04
./configure --enable-smp-support

it tells that will make erl without jinterface, odbc, wx, docs. thats OK

make
sudo make install
erl
Erlang R14B04 (erts-5.8.5) [source] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.8.5  (abort with ^G)
1>

erlang is OK

#beamjs install
sudo apt-get install libtool autoconf automake uuid-dev
cd ~/dev
git clone https://github.com/beamjs/beamjs.git
cd beamjs
make
./beamjs
beam.js> console.log('OK');
OK
beam.js>

beamjs is OK

#beamjs_misultin install
cd ~/dev
git clone https://github.com/beamjs/beamjs_misultin.git
cd beamjs_misultin
make

compilaton was successful

run misultin

cd ~/dev/beamjs
./beamjs -jspath ../beamjs_misultin/lib -bundles erlang node_compat stdlib commonjs -pa ../beamjs_misultin/ebin -pa ../beamjs_misultin/deps/misultin/ebin/
beam.js> require('http');
Error: Cannot find module 'http'
beam.js> require('beamjs_misultin');
Error: Cannot find module 'beamjs_misultin'
beam.js> require('node_compat');
Error: Cannot find module 'node_compat'
beam.js>

please help me with this.
thanks

Reply to this email directly or view it on GitHub:
#6 (comment)

@sjanecki
Copy link
Author

sjanecki commented Oct 8, 2011

that's nice. thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants