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

Can't run on Ubuntu 12.10 #45

Open
jrgifford opened this issue Jan 4, 2013 · 12 comments
Open

Can't run on Ubuntu 12.10 #45

jrgifford opened this issue Jan 4, 2013 · 12 comments
Assignees

Comments

@jrgifford
Copy link

Using rbenv and ruby 1.9.3p362, I can't run it. I get this error:

----------------------------------------------
       *** LOAD ERROR ***
 ----------------------------------------------
       Arcadia require ruby-tk extension     
       and tcl/tk run-time                   
       you must install before run ...       
 ----------------------------------------------
 ----- LoadError Details-----------------------
    Platform : "i686-linux"          
    Ruby version : "1.9.3"
    Message : 
     "cannot load such file -- tk"
 ----------------------------------------------

what am I doing wrong?

@angal
Copy link
Owner

angal commented Jan 4, 2013

Hi James,
probably are missing these basic requirements:

  1. packages tcl8.5 and tk8.5
  2. package libtcltk-ruby
    Try to istall ..

Bye
Antonio

@jrgifford
Copy link
Author

Hello!

All of those are already installed. Do I need to compile ruby with some special options?

James Gifford
2162238574

On Jan 4, 2013, at 16:47, Antonio notifications@github.com wrote:

Hi James,
probably are missing these basic requirements:

  1. packages tcl8.5 and tk8.5
  2. package libtcltk-ruby
    Try to istall ..

Bye
Antonio


Reply to this email directly or view it on GitHub.

@angal
Copy link
Owner

angal commented Jan 4, 2013

mmmh
probably you need to install package ruby-1.9.3-dev
and then to reinstall libtcltk-ruby

@jrgifford
Copy link
Author

Nope. Got those installed. Do I need to recompile my ruby or something? I'm
using rvm and rbenv on two seperate machines that are having this issue.

On Friday, January 4, 2013, Antonio wrote:

mmmh
probably you need to install package ruby-1.9.3-dev
and then to reinstall libtcltk-ruby


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-11903343.

James Gifford
cell: 2162238574

@rdp
Copy link
Collaborator

rdp commented Jan 8, 2013

Possibly recompile ruby.

On Mon, Jan 7, 2013 at 9:36 PM, James Gifford notifications@github.comwrote:

Nope. Got those installed. Do I need to recompile my ruby or something?
I'm
using rvm and rbenv on two seperate machines that are having this issue.

On Friday, January 4, 2013, Antonio wrote:

mmmh
probably you need to install package ruby-1.9.3-dev
and then to reinstall libtcltk-ruby


Reply to this email directly or view it on GitHub<
https://github.com/angal/arcadia/issues/45#issuecomment-11903343>.

James Gifford
cell: 2162238574


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-11984424.

@sbsud
Copy link

sbsud commented Mar 29, 2013

Hi, I'm facing the same issue on the same OS. Did you get this working?

@rdp
Copy link
Collaborator

rdp commented Mar 29, 2013

did you install those packages and reinstall ruby?

On Thu, Mar 28, 2013 at 6:56 PM, sudarshanshubakar <notifications@github.com

wrote:

Hi, I'm facing the same issue on the same OS. Did you get this working?


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-15623997
.

@sbsud
Copy link

sbsud commented Mar 29, 2013

yes. I am running Ruby 2.0.0 and reinstalled it by running "rvm reinstall 2.0.0". Is that enough? I did get an error as below. Not sure what to make of it though. The install itself seems to have completed successfully.

Error running 'env GEM_PATH=/home/sudarshan/.rvm/gems/ruby-2.0.0-p0:/home/sudarshan/.rvm/gems/ruby-2.0.0-p0@global:/home/sudarshan/.rvm/gems/ruby-2.0.0-p0:/home/sudarshan/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/home/sudarshan/.rvm/gems/ruby-2.0.0-p0 /home/sudarshan/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /home/sudarshan/.rvm/src/rubygems-2.0.3/setup.rb --verbose',
please read /home/sudarshan/.rvm/log/ruby-2.0.0-p0/rubygems.install.log

@rdp
Copy link
Collaborator

rdp commented Apr 2, 2013

What does irb
"require 'tk'"
yield?

On Thu, Mar 28, 2013 at 10:22 PM, sudarshanshubakar <
notifications@github.com> wrote:

yes. I am running Ruby 2.0.0 and reinstalled it by running "rvm reinstall
2.0.0". Is that enough?


Reply to this email directly or view it on GitHubhttps://github.com//issues/45#issuecomment-15628391
.

@ghost ghost assigned angal Apr 10, 2013
@mibamur
Copy link
Contributor

mibamur commented Sep 12, 2013

Troubleshooting

----------------------------------------------
       *** LOAD ERROR ***
 ----------------------------------------------
Arcadia require ruby-tk extension     
       and tcl/tk run-time 

Solution:

Linux

(this helped me)
sudo apt-get install tcl8.5 tk8.5
rvm install 1.9.2 --enable-pthread or rvm reinstall 1.9.2 --enable-pthread

I not sure on other OS, but you need "activetcl" (activestate.com)

OS X

RVM disables tk/tcl by default, you need to tell ruby (via rvm) you want tk/tcl:
rvm install 1.9.2 --enable-shared --enable-pthread --with-tk --with-tcl

Windows install

rvm install 1.9.2 --enable-shared --enable-pthread --with-tk --with-tcl

Notes

ruby with --enable-pthread parametr may work slower than without it
for Arcadia better install own ruby version with --enable-pthread

@TheNotary
Copy link

I was stuck on linux mint/ ubuntu =( It appears that if you want to work with the tk tlc code base on those platforms, you must not use rvm and use the package maintainers 'full' version. This is disappointing but the below commands work...

$  sudo apt-get install tcl8.5 tk8.5 ruby-all-dev libtcltk-ruby 
$  sudo apt-get install ruby1.9.1-full
$  irb1.9.1
> require 'tk'
#=> true

$  gem1.9.1 install desired_gem
$ ruby1.9.1 script_to_run.rb

Hope this helps someone, though I can't get a render window to show up and am moving on to 'blind development' on an unrelated project, so perhaps this isn't the silver bullet after all.

@gunchleoc
Copy link

Is it possible to get at the tcltklib package without having to sign up for an account at active.com?

This seems to be the only free Ruby IDE that's still in active development, so I'd like to get at its dependencies in a free manner too.

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

7 participants