"But I don't even have a ~/bin". Anyway, the problem turns out to be in ~/.w3m/config . But which line?
accept_encoding gzip, compress, bzip, bzip2, deflate accept_language en;q=1.0 accept_media text/html, text/*;q=0.5, image/*, application/*, video/*, audio/*, zz-application/* auto_detect 2 auto_image 1 auto_uncompress 0 clear_buffer 1 close_tab_back 0 color 0 confirm_qq 0 decode_cte 0 decode_url 0 dictcommand file:///$LIB/w3mdict.cgi disable_secret_security_check 0 display_charset UTF-8 display_ins_del 1 display_lineinfo 0 display_link_number 0 dns_order 0 document_charset UTF-8 east_asian_width 0 emacs_like_lineedit 0 ext_halfdump 0 ext_image_viewer 1 fix_width_conv 1 fixed_wheel_scroll_count 5 fold_textarea 0 gb18030_as_ucs 0 graphic_char 0 image_map_list 1 image_scale 100 imgdisplay w3mimgdisplay indent_incr 4 keymap_file keymap label_topline 0 mailto_options 1 mark 0 mark_all_pages 0 mark_color cyan max_load_image 4 max_news 50 nextpage_topline 0 open_tab_blank 0 open_tab_dl_list 0 passwd_file ~/.w3m/passwd pixel_per_char 7 pixel_per_line 14 pre_conv 0 pre_form_file ~/.w3m/pre_form preserve_timestamp 1 pseudo_inlines 1 relative_wheel_scroll 0 relative_wheel_scroll_ratio 30 reverse_mouse 0 search_conv 1 show_cookie 1 show_srch_str 1 simple_preserve_space 1 ssl_verify_server 0 strict_iso2022 1 system_charset UTF-8 ucs_conv 1 use_combining 1 use_dictcommand 0 use_gb12345_map 0 use_history 1 use_jisc6226 0 use_jisx0201 0 use_jisx0201k 0 use_jisx0212 0 use_jisx0213 0 use_language_tag 1 use_wide 1 vi_prec_num 0