无法开始升华文字


9

我一直在使用Sublime Text 2,没有任何问题。我安装了IDLE,但现在无法启动Sublime Text。我尝试卸载IDLE,但Sublime Text仍未启动。这是错误:

Unable to load libgdk-x11-2.0.so
Unable to load gdk_cairo_create from libgdk-x11-2.0.so
Unable to load gdk_cursor_new_for_display from libgdk-x11-2.0.so
Unable to load gdk_cursor_unref from libgdk-x11-2.0.so
Unable to load gdk_error_trap_pop from libgdk-x11-2.0.so
Unable to load gdk_error_trap_push from libgdk-x11-2.0.so
Unable to load gdk_input_add from libgdk-x11-2.0.so
Unable to load gdk_input_remove from libgdk-x11-2.0.so
Unable to load gdk_keymap_translate_keyboard_state from libgdk-x11-2.0.so
Unable to load gdk_keyval_to_unicode from libgdk-x11-2.0.so
Unable to load gdk_pixbuf_new_from_file from libgdk-x11-2.0.so
Unable to load gdk_region_get_rectangles from libgdk-x11-2.0.so
Unable to load gdk_screen_get_default from libgdk-x11-2.0.so
Unable to load gdk_screen_get_display from libgdk-x11-2.0.so
Unable to load gdk_screen_get_height from libgdk-x11-2.0.so
Unable to load gdk_screen_get_rgb_colormap from libgdk-x11-2.0.so
Unable to load gdk_screen_get_rgba_colormap from libgdk-x11-2.0.so
Unable to load gdk_screen_get_root_window from libgdk-x11-2.0.so
Unable to load gdk_screen_get_width from libgdk-x11-2.0.so
Unable to load gdk_screen_get_n_monitors from libgdk-x11-2.0.so
Unable to load gdk_screen_get_monitor_geometry from libgdk-x11-2.0.so
Unable to load gdk_unicode_to_keyval from libgdk-x11-2.0.so
Unable to load gdk_window_get_frame_extents from libgdk-x11-2.0.so
Unable to load gdk_window_get_origin from libgdk-x11-2.0.so
Unable to load gdk_window_get_state from libgdk-x11-2.0.so
Unable to load gdk_window_invalidate_rect from libgdk-x11-2.0.so
Unable to load gdk_window_set_cursor from libgdk-x11-2.0.so
Unable to load gdk_window_move_resize from libgdk-x11-2.0.so
Unable to load gdk_x11_display_get_xdisplay from libgdk-x11-2.0.so
Unable to load gdk_x11_drawable_get_xid from libgdk-x11-2.0.so
Unable to load gdk_x11_get_server_time from libgdk-x11-2.0.so
Unable to load gdk_x11_get_xatom_by_name_for_display from libgdk-x11-2.0.so
Unable to load gdk_x11_window_set_user_time from libgdk-x11-2.0.so
Unable to load libgtk-x11-2.0.so
Unable to load gtk_accel_group_new from libgtk-x11-2.0.so
Unable to load gtk_accelerator_get_default_mod_mask from libgtk-x11-2.0.so
Unable to load gtk_box_get_type from libgtk-x11-2.0.so
Unable to load gtk_box_pack_start from libgtk-x11-2.0.so
Unable to load gtk_check_menu_item_get_type from libgtk-x11-2.0.so
Unable to load gtk_check_menu_item_new_with_label from libgtk-x11-2.0.so
Unable to load gtk_check_menu_item_set_active from libgtk-x11-2.0.so
Unable to load gtk_clipboard_clear from libgtk-x11-2.0.so
Unable to load gtk_clipboard_get from libgtk-x11-2.0.so
Unable to load gtk_clipboard_set_text from libgtk-x11-2.0.so
Unable to load gtk_clipboard_set_with_data from libgtk-x11-2.0.so
Unable to load gtk_clipboard_store from libgtk-x11-2.0.so
Unable to load gtk_clipboard_wait_for_text from libgtk-x11-2.0.so
Unable to load gtk_container_add from libgtk-x11-2.0.so
Unable to load gtk_container_get_children from libgtk-x11-2.0.so
Unable to load gtk_container_get_type from libgtk-x11-2.0.so
Unable to load gtk_container_remove from libgtk-x11-2.0.so
Unable to load gtk_dialog_add_button from libgtk-x11-2.0.so
Unable to load gtk_dialog_get_type from libgtk-x11-2.0.so
Unable to load gtk_dialog_run from libgtk-x11-2.0.so
Unable to load gtk_dialog_set_default_response from libgtk-x11-2.0.so
Unable to load gtk_drag_dest_set from libgtk-x11-2.0.so
Unable to load gtk_drag_finish from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_add_filter from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_dialog_new from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_get_filename from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_get_files from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_get_type from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_set_current_folder from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_set_current_name from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_set_do_overwrite_confirmation from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_set_local_only from libgtk-x11-2.0.so
Unable to load gtk_file_chooser_set_select_multiple from libgtk-x11-2.0.so
Unable to load gtk_file_filter_add_pattern from libgtk-x11-2.0.so
Unable to load gtk_file_filter_new from libgtk-x11-2.0.so
Unable to load gtk_file_filter_set_name from libgtk-x11-2.0.so
Unable to load gtk_get_current_event_time from libgtk-x11-2.0.so
Unable to load gtk_im_context_filter_keypress from libgtk-x11-2.0.so
Unable to load gtk_im_context_set_client_window from libgtk-x11-2.0.so
Unable to load gtk_im_multicontext_new from libgtk-x11-2.0.so
Unable to load gtk_init from libgtk-x11-2.0.so
Unable to load gtk_main from libgtk-x11-2.0.so
Unable to load gtk_main_quit from libgtk-x11-2.0.so
Unable to load gtk_menu_attach_to_widget from libgtk-x11-2.0.so
Unable to load gtk_menu_bar_new from libgtk-x11-2.0.so
Unable to load gtk_menu_get_type from libgtk-x11-2.0.so
Unable to load gtk_menu_item_get_label from libgtk-x11-2.0.so
Unable to load gtk_menu_item_get_submenu from libgtk-x11-2.0.so
Unable to load gtk_menu_item_get_type from libgtk-x11-2.0.so
Unable to load gtk_menu_item_new_with_label from libgtk-x11-2.0.so
Unable to load gtk_menu_item_set_label from libgtk-x11-2.0.so
Unable to load gtk_menu_item_set_submenu from libgtk-x11-2.0.so
Unable to load gtk_menu_item_set_use_underline from libgtk-x11-2.0.so
Unable to load gtk_menu_new from libgtk-x11-2.0.so
Unable to load gtk_menu_popup from libgtk-x11-2.0.so
Unable to load gtk_menu_shell_append from libgtk-x11-2.0.so
Unable to load gtk_menu_shell_get_type from libgtk-x11-2.0.so
Unable to load gtk_message_dialog_new from libgtk-x11-2.0.so
Unable to load gtk_message_dialog_new_with_markup from libgtk-x11-2.0.so
Unable to load gtk_selection_data_get_uris from libgtk-x11-2.0.so
Unable to load gtk_selection_data_set_text from libgtk-x11-2.0.so
Unable to load gtk_separator_menu_item_new from libgtk-x11-2.0.so
Unable to load gtk_settings_get_default from libgtk-x11-2.0.so
Unable to load gtk_show_uri from libgtk-x11-2.0.so
Unable to load gtk_vbox_new from libgtk-x11-2.0.so
Unable to load gtk_widget_add_accelerator from libgtk-x11-2.0.so
Unable to load gtk_widget_add_events from libgtk-x11-2.0.so
Unable to load gtk_widget_destroy from libgtk-x11-2.0.so
Unable to load gtk_widget_get_display from libgtk-x11-2.0.so
Unable to load gtk_widget_get_parent from libgtk-x11-2.0.so
Unable to load gtk_widget_get_screen from libgtk-x11-2.0.so
Unable to load gtk_widget_get_type from libgtk-x11-2.0.so
Unable to load gtk_widget_get_window from libgtk-x11-2.0.so
Unable to load gtk_widget_grab_focus from libgtk-x11-2.0.so
Unable to load gtk_widget_hide from libgtk-x11-2.0.so
Unable to load gtk_widget_remove_accelerator from libgtk-x11-2.0.so
Unable to load gtk_widget_set_app_paintable from libgtk-x11-2.0.so
Unable to load gtk_widget_set_colormap from libgtk-x11-2.0.so
Unable to load gtk_widget_set_double_buffered from libgtk-x11-2.0.so
Unable to load gtk_widget_set_sensitive from libgtk-x11-2.0.so
Unable to load gtk_widget_show from libgtk-x11-2.0.so
Unable to load gtk_widget_show_all from libgtk-x11-2.0.so
Unable to load gtk_window_add_accel_group from libgtk-x11-2.0.so
Unable to load gtk_window_fullscreen from libgtk-x11-2.0.so
Unable to load gtk_window_get_type from libgtk-x11-2.0.so
Unable to load gtk_window_iconify from libgtk-x11-2.0.so
Unable to load gtk_window_maximize from libgtk-x11-2.0.so
Unable to load gtk_window_move from libgtk-x11-2.0.so
Unable to load gtk_window_new from libgtk-x11-2.0.so
Unable to load gtk_window_present_with_time from libgtk-x11-2.0.so
Unable to load gtk_window_remove_accel_group from libgtk-x11-2.0.so
Unable to load gtk_window_resize from libgtk-x11-2.0.so
Unable to load gtk_window_set_default_icon_list from libgtk-x11-2.0.so
Unable to load gtk_window_set_default_size from libgtk-x11-2.0.so
Unable to load gtk_window_set_keep_above from libgtk-x11-2.0.so
Unable to load gtk_window_set_modal from libgtk-x11-2.0.so
Unable to load gtk_window_set_position from libgtk-x11-2.0.so
Unable to load gtk_window_set_title from libgtk-x11-2.0.so
Unable to load gtk_window_set_transient_for from libgtk-x11-2.0.so
Unable to load gtk_window_set_type_hint from libgtk-x11-2.0.so
Unable to load gtk_window_stick from libgtk-x11-2.0.so
Unable to load gtk_window_unfullscreen from libgtk-x11-2.0.so
Unable to load cairo_clip from libcairo.so
Unable to load cairo_create from libcairo.so
Unable to load cairo_destroy from libcairo.so
Unable to load cairo_fill from libcairo.so
Unable to load cairo_font_options_create from libcairo.so
Unable to load cairo_font_options_destroy from libcairo.so
Unable to load cairo_font_options_set_antialias from libcairo.so
Unable to load cairo_get_source from libcairo.so
Unable to load cairo_image_surface_create from libcairo.so
Unable to load cairo_image_surface_create_for_data from libcairo.so
Unable to load cairo_image_surface_get_data from libcairo.so
Unable to load cairo_image_surface_get_format from libcairo.so
Unable to load cairo_image_surface_get_height from libcairo.so
Unable to load cairo_image_surface_get_stride from libcairo.so
Unable to load cairo_image_surface_get_width from libcairo.so
Unable to load cairo_line_to from libcairo.so
Unable to load cairo_matrix_init_scale from libcairo.so
Unable to load cairo_matrix_init_translate from libcairo.so
Unable to load cairo_matrix_translate from libcairo.so
Unable to load cairo_move_to from libcairo.so
Unable to load cairo_paint_with_alpha from libcairo.so
Unable to load cairo_pattern_set_extend from libcairo.so
Unable to load cairo_pattern_set_matrix from libcairo.so
Unable to load cairo_rectangle from libcairo.so
Unable to load cairo_reset_clip from libcairo.so
Unable to load cairo_restore from libcairo.so
Unable to load cairo_save from libcairo.so
Unable to load cairo_set_line_width from libcairo.so
Unable to load cairo_set_operator from libcairo.so
Unable to load cairo_set_source_rgb from libcairo.so
Unable to load cairo_set_source_rgba from libcairo.so
Unable to load cairo_set_source_surface from libcairo.so
Unable to load cairo_stroke from libcairo.so
Unable to load cairo_surface_destroy from libcairo.so
Unable to load cairo_surface_flush from libcairo.so
Unable to load cairo_translate from libcairo.so
Unable to load cairo_scale from libcairo.so
Unable to load pango_font_description_free from libpango-1.0.so
Unable to load pango_font_description_new from libpango-1.0.so
Unable to load pango_font_description_set_family from libpango-1.0.so
Unable to load pango_font_description_set_size from libpango-1.0.so
Unable to load pango_font_description_set_style from libpango-1.0.so
Unable to load pango_font_description_set_weight from libpango-1.0.so
Unable to load pango_font_get_metrics from libpango-1.0.so
Unable to load pango_font_map_load_font from libpango-1.0.so
Unable to load pango_font_metrics_get_ascent from libpango-1.0.so
Unable to load pango_font_metrics_get_descent from libpango-1.0.so
Unable to load pango_font_metrics_unref from libpango-1.0.so
Unable to load pango_language_get_default from libpango-1.0.so
Unable to load pango_layout_get_context from libpango-1.0.so
Unable to load pango_layout_get_pixel_extents from libpango-1.0.so
Unable to load pango_layout_set_font_description from libpango-1.0.so
Unable to load pango_layout_set_text from libpango-1.0.so
Unable to load pango_cairo_context_set_font_options from libpangocairo-1.0.so
Unable to load pango_cairo_create_layout from libpangocairo-1.0.so
Unable to load pango_font_map_create_context from libpangocairo-1.0.so
Unable to load pango_cairo_font_map_get_default from libpangocairo-1.0.so
Unable to load pango_cairo_show_layout from libpangocairo-1.0.so
Unable to load pango_cairo_update_layout from libpangocairo-1.0.so
Unable to load all required GTK functions
Unable to init px

有什么办法吗?


2
您可能正在x64机器上运行x86版本的st2,反之亦然。

Answers:


0

看起来Sublime无法找到这些库

libpango-1.0.so libcairo.so libgdk-x11-2.0.so libpangocairo-1.0.so 

定位

locate libpango-1.0.so libcairo.so libgdk-x11-2.0.so libpangocairo-1.0.so

如果您的系统上不存在这些库,请再次安装它们。如果即使在安装后错误仍然存​​在,则请创建已安装库的副本,然后将其重命名为期望的版本。


3
这个有用吗?...因此,如果我安装了库,则仅应使用sublime ??!?!销毁我的应用程序。
2014年

12

我有一个类似的错误,但是我只需要发出命令sudo apt-get install libgtk2.0,其他所有依赖项都会自动拉出。


这是在Ubuntu服务器上运行sublime所需要做的唯一事情。
尼玛

5

在我的情况下,尝试在没有X-es的主机中运行Sublime会给我这个错误。

安装以下软件包已解决了该问题:

sudo apt-get install libgtk2.0-0 libgdk-pixbuf2.0-0 libfontconfig1 libxrender1 libx11-6 libglib2.0-0  libxft2 libfreetype6 libc6 zlib1g libpng12-0 libstdc++6-4.8-dbg-arm64-cross libgcc1 

(我没有检查是否真的需要所有这些)


1
libstdc++6-4.8-dbg-arm64-cross运行Sublime Text?Oo
David Foerster,

这怎么不是被接受的答案!?
cs01

5

您安装的Sublime Text版本与Ubuntu安装的处理器体系结构不匹配。

有两个下载可用,Ubuntu 64位(也称为amd64)和Ubuntu 32位(也为i386)。如果的输出uname -a包含x86_64,则说明您安装的是64位的Ubuntu,应该使用Sublime Text的64位软件包。

只需下载相应的软件包并安装即可。

注意:amd64名称有点令人困惑。如果您使用64位Intel处理器,则仍将使用amd64软件包。


1
很抱歉对旧帖子发表评论。谢谢你的提示。我有同样的问题。现在,我发现我的Sublime Text Editor版本是i386 / 32位版本。卸载它,然后重新安装64位版本,现在一切正常。
周恩屯

欢迎来到Ask Ubuntu!我建议编辑此答案以将其扩展为有关如何执行此操作的特定详细信息。(另请参阅“我如何编写一个好的答案?”,以获取有关在Ask Ask Ubuntu上认为哪种答案最有价值的一般建议。)
David Foerster,2016年

这是正确的答案。如果为您的体系结构安装了错误的ST版本,则会发生问题。
mniess

我没有安装错误的系统而收到此错误。@ witkacy26的答案为我解决了这个问题。
cs01

0

背景和简短答案

就我而言,打开一个新的shell实例后,运行subl正常。但是,在对LD_LIBRARY_PATH(和/或另一个库路径环境变量)进行了许多修改之后,我建议您:

  1. 清除变量
  2. 验证Sublime现在可以运行
  3. 缩小违规范围。

更多背景和长答案

在构建具有几个外部软件包的软件项目时,我确实注意到了这个问题:在第一个版本中,一切都很好,但是在安装MPICH时,后续的版本将失败。因为我LD_LIBRARY_PATH根据已安装的软件包在后续版本上进行了修改,所以编译器选择的是通过PETSc而非系统副本安装的库。

如果您发现自己处于类似情况,则可能是LD_LIBRARY_PATH(和/或其他环境变量)最初为空,并且需要在修改之前将其设置为某些系统路径。例如,放入export LD_LIBRARY_PATH="/usr/local/lib:/usr/lib/x86_64-linux-gnu:/usr/lib"您的外壳配置文件配置文件。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.