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

Fresh tarball installation Ubuntu 18.04 can't find setup.rb #330

Open
benknoble opened this issue Jul 31, 2018 · 0 comments
Open

Fresh tarball installation Ubuntu 18.04 can't find setup.rb #330

benknoble opened this issue Jul 31, 2018 · 0 comments

Comments

@benknoble
Copy link
Contributor

This seemed to have been fixed for a few earlier versions, and I had successfully manually installed gitsh once before on this system, but I had to reinstall the OS. So I'm rebuilding gitsh again, and I'm stuck here.

I'm not sure what I did last time, and I can't seem to fix it.

Let me know what detail I'm missing.

Regular compile dance:

$ ./configure
checking for a BSD-compatible install... /home/linuxbrew/.linuxbrew/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /home/linuxbrew/.linuxbrew/bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for ruby... /usr/bin/ruby
checking for ruby... (cached) /usr/bin/ruby
checking for a sed that does not truncate output... /home/linuxbrew/.linuxbrew/bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for ruby version... ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]
checking for tgetnum() in -lncurses... no
checking for tgetnum() in -ltermcap... yes
checking for readline/readline.h... yes
checking for readline/history.h... yes
checking for readline() in -lreadline... yes
checking for rl_set_screen_size() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completion_append_character in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completion_suppress_quote in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_editing_mode in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_line_buffer in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_char_is_quoted_p in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completion_quote_character in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_getc() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_getc_function() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_filename_completion_function() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_username_completion_function() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completion_matches() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_refresh_line() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_deprep_term_function in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completer_word_break_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_completer_quote_characters in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_attempted_completion_over in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_library_version in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_point in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_event_hook in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_catch_sigwinch in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_catch_signals in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_pre_input_hook in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_special_prefixes in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_cleanup_after_signal() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_free_line_state() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_clear_signals() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_get_screen_size() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_vi_editing_mode() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_emacs_editing_mode() in stdio.h,readline/readline.h,readline/history.h... yes
checking for replace_history_entry() in stdio.h,readline/readline.h,readline/history.h... yes
checking for remove_history() in stdio.h,readline/readline.h,readline/history.h... yes
checking for clear_history() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_redisplay() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_insert_text() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_delete_text() in stdio.h,readline/readline.h,readline/history.h... yes
checking for rl_hook_func_t* in stdio.h,readline/readline.h,readline/history.h... yes
checking for rb_obj_reveal() in ruby.h... yes
checking for rb_obj_hide() in ruby.h... yes
creating Makefile
find: ./spec/integration: No such file or directory
find: ./spec/units: No such file or directory
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating INSTALL
config.status: executing depfiles commands
$ make
depbase=src/.deps/gitsh;gcc -DPACKAGE_NAME="gitsh" -DPACKAGE_TARNAME="gitsh" -DPACKAGE_VERSION="0.12" -DPACKAGE_STRING="gitsh\ 0.12" -DPACKAGE_BUGREPORT="hello@thoughtbot.com" -DPACKAGE_URL="" -DPACKAGE="gitsh" -DVERSION="0.12" -I.  -DGITSH_RB_PATH="/usr/local/share/gitsh/ruby/gitsh.rb"   -g -O2 -MT src/gitsh.o -MD -MP -MF .Tpo -c -o src/gitsh.o src/gitsh.c &&mv -f .Tpo .Po
gcc  -g -O2   -o gitsh src/gitsh.o
sed -e 's|@RUBY[@]|/usr/bin/ruby|g' -e 's|@rubylibdir[@]|/usr/local/share/gitsh/ruby/lib|g' -e 's|@gemsetuppath[@]|/usr/local/share/gitsh/vendor/gems/setup.rb|g' -e 's|@PACKAGE_VERSION[@]|0.12|g' ./src/gitsh.rb.in > src/gitsh.rb
chmod +x src/gitsh.rb
sed -e 's|@RUBY[@]|/usr/bin/ruby|g' -e 's|@rubylibdir[@]|/usr/local/share/gitsh/ruby/lib|g' -e 's|@gemsetuppath[@]|/usr/local/share/gitsh/vendor/gems/setup.rb|g' -e 's|@PACKAGE_VERSION[@]|0.12|g' ./lib/gitsh/version.rb.in > lib/gitsh/version.rb
cd ext/gitsh && make
make[1]: Entering directory '/home/knoble/gitsh-0.12/ext/gitsh'
compiling src/line_editor.c
linking shared-object gitsh/line_editor_native.so
make[1]: Leaving directory '/home/knoble/gitsh-0.12/ext/gitsh'
$ ./gitsh
gitsh: /usr/local/share/gitsh/ruby/gitsh.rb: No such file or directory
$ sudo make install
cd ext/gitsh && make
make[1]: Entering directory /home/knoble/gitsh-0.12/ext/gitsh
make[1]: Nothing to be done for all.
make[1]: Leaving directory /home/knoble/gitsh-0.12/ext/gitsh
make[1]: Entering directory /home/knoble/gitsh-0.12
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/bin
  /home/linuxbrew/.linuxbrew/bin/ginstall -c gitsh /usr/local/bin
mkdir -p "/usr/local/share/gitsh/ruby/lib/gitsh"
cp ext/gitsh/line_editor_native.* "/usr/local/share/gitsh/ruby/lib/gitsh"
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/man/man1
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644 man/man1/gitsh.1 /usr/local/share/man/man1
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh/git_repository
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/git_repository/status.rb /usr/local/share/gitsh/ruby/lib/gitsh/git_repository
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh/arguments
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/arguments/subshell.rb ./lib/gitsh/arguments/variable_argument.rb ./lib/gitsh/arguments/composite_argument.rb ./lib/gitsh/arguments/string_argument.rb /usr/local/share/gitsh/ruby/lib/gitsh/arguments
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh/lexer
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/lexer/character_class.rb /usr/local/share/gitsh/ruby/lib/gitsh/lexer
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/error.rb ./lib/gitsh/completer.rb ./lib/gitsh/history.rb ./lib/gitsh/program_name.rb ./lib/gitsh/environment.rb ./lib/gitsh/cli.rb ./lib/gitsh/lexer.rb ./lib/gitsh/module_delegator.rb ./lib/gitsh/colors.rb ./lib/gitsh/argument_list.rb ./lib/gitsh/capturing_environment.rb ./lib/gitsh/interpreter.rb ./lib/gitsh/shell_command_runner.rb ./lib/gitsh/completion_escaper.rb ./lib/gitsh/magic_variables.rb ./lib/gitsh/git_repository.rb ./lib/gitsh/file_runner.rb ./lib/gitsh/quote_detector.rb ./lib/gitsh/parser.rb ./lib/gitsh/terminal.rb ./lib/gitsh/prompt_color.rb ./lib/gitsh/line_editor.rb ./lib/gitsh/line_editor_history_filter.rb ./lib/gitsh/prompter.rb ./lib/gitsh/exit_statuses.rb /usr/local/share/gitsh/ruby/lib/gitsh
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh/input_strategies
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/input_strategies/file.rb ./lib/gitsh/input_strategies/interactive.rb /usr/local/share/gitsh/ruby/lib/gitsh/input_strategies
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh/commands
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644  ./lib/gitsh/commands/error_handler.rb ./lib/gitsh/commands/noop.rb ./lib/gitsh/commands/tree.rb ./lib/gitsh/commands/shell_command.rb ./lib/gitsh/commands/factory.rb ./lib/gitsh/commands/git_command.rb ./lib/gitsh/commands/internal_command.rb /usr/local/share/gitsh/ruby/lib/gitsh/commands
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby/lib/gitsh
 /home/linuxbrew/.linuxbrew/bin/ginstall -c -m 644 lib/gitsh/version.rb /usr/local/share/gitsh/ruby/lib/gitsh
 /home/linuxbrew/.linuxbrew/bin/mkdir -p /usr/local/share/gitsh/ruby
 /home/linuxbrew/.linuxbrew/bin/ginstall -c src/gitsh.rb /usr/local/share/gitsh/ruby
make[1]: Leaving directory /home/knoble/gitsh-0.12
$ /usr/local/bin/gitsh
Traceback (most recent call last):
        1: from /usr/local/share/gitsh/ruby/gitsh.rb:5:in `<main>'
        /usr/local/share/gitsh/ruby/gitsh.rb:5:in `require': cannot load such
        file -- /usr/local/share/gitsh/vendor/gems/setup.rb (LoadError)
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

1 participant