I installed Midnight Commander into my Cygwin environment, but it's not working. Can anyone help me figure out what's going wrong?
Here's what I'm seeing:
$ mc
Error opening terminal: xterm.
$ mc -U
Error opening terminal: xterm.
Here's the version information for mc:
$ mc -V
GNU Midnight Commander 4.6.1
Virtual File System: tarfs, extfs, cpiofs, ftpfs, fish
With builtin Editor
Using the ncurses library
With optional subshell support
With mouse support on xterm
With support for X11 events
...and here's the version of Cygwin:
$ uname -a
CYGWIN_NT-5.1 c40920j 1.7.7(0.230/5/3) 2010-08-31 09:58 i686 Cygwin
Thanks in advance!
You might see this error if your copy of xterm is missing; you should find it under:
/usr/share/terminfo/x/xterm
Related
For the debugging purpose, I want to invoke the GTK failed dialog.
In Ubuntu, I can find the binary at /usb/lib/gnome-session/gnome-session-failed. Is the same function executable available in Fedora? I tried to search around but could not find it in the system.
Fedora version: 18 (Spherical Cow)
GNOME version: 3.6
You can check files in a rpm package this way:
$ rpm -ql gnome-session | grep failed
/usr/lib/systemd/user/gnome-session-failed.service
/usr/lib/systemd/user/gnome-session-failed.target
/usr/libexec/gnome-session-failed
Seems for the version you are using there was not such executable and the fail dialog would run by doing : gnome-session whale.
See: https://github.com/GNOME/gnome-session/blob/e59b938c644a78236fd5ed9d708022be3b990ddc/gnome-session/main.c#L296
gnome-session-failed is not available in the version you mentioned.
you need to use gnome-session instead and specify with -whale.
I'm trying to figure out how to copy-and-paste between a file edited with Vim and the macOS Clipboard. Most instructions say to start by installing Vim using Homebrew as it will be installed with the clipboard option enabled (vim --version will display "+clipboard"). However, when I installed Vim using brew, the clipboard option was still set to "-clipboard". Can I force brew to reinstall Vim and turn this option on in the process? I'm using Homebrew 1.1.2 which installed VIM 7.4.
Because Homebrew no longer takes package specific options on the command line you need to edit the formula to add support for the clipboard back and then tell brew to install from source and not from a bottle.
brew uninstall vim
brew edit vim
# Add `"--enable-clipboard",` after the `./configure` in the list of other options.
brew install -s vim
Summarized from this solution:
https://coderwall.com/p/avmotq/gain-clipboard-support-for-vim-on-os-x
Expanding on Andy Ray's comment…
MacVim is a GUI program but it also comes with a TUI executable that can be run in a terminal emulator. Because that TUI executable has all the features of the GUI program, installing MacVim is by far the easiest and safest way to have a full-featured and well optimized Vim on Mac OS X:
Download the latest release.
Mount the disk image.
Drag and drop MacVim.app to /Applications/ or ~/Applications.
Put the mvim scriptsomewhere in your$PATH`.
[OPTIONAL] Add alias vim='mvim -v' to your shell's init script.
From your shell, you can do:
$ mvim foo.txt
to edit foo.txt in the MacVim GUI,
$ mvim -v bar.txt
to edit bar.txt in the MacVim TUI. Or, if you added the alias:
$ vim bar.txt
Now, to address your comment…
If you connect to your Mac from your Linux box, iTerm.app doesn't come into play and you can use whatever TUI program is installed on the Mac, including the Macvim TUI.
If you connect to your Linux box from your Mac, whether it is via iTerm.app or Terminal.app, the vim you are going to run will be the vim on your Linux machine so… what programs you install on your Mac doesn't matter at all as you won't have access to them anyway.
I installed gnuplot version 4.6.6.
After that the terminals "wxt" and "pngcairo" were no longer available. The time before I have been working a lot with these two terminals with version 4.4 and with very good results.
How can I get these two terminals working with gnuplot version 4.6?
In the following I try to answer a question of Christoph:
I am working with Linux, with an old version of Kubuntu (Ubuntu 11.10 "oneiric").
I downloaded "gnuplot-4.6.6", unpacked it and read the File "INSTALL".
From this long text I read only the following lines:
----------------------------------------------
Unix, configure
---------------
On Unix, use
$ ./configure
$ make
[ Optionally run demos--see "How to test gnuplot" below. ]
$ make install
-----------------------------------------------
and also the following lines:
----------------------------------------------------------
Linux
-----
Ubuntu:
./configure fails to find lua support because Ubuntu packages it as
"lua5.1" rather than "lua". You can fix this by adding a symlink
prior to running ./configure
ln -s /usr/lib/pkgconfig/lua5.1.pc /usr/lib/pkgconfig/lua.pc
-----------------------------------------------------------
So I applied the following statements (as root):
'ln -s /usr/lib/pkgconfig/lua5.1.pc /usr/lib/pkgconfig/lua.pc'
./configure
make
make install
All these statements produced a lot of output, but no problems were indicated.
The executable binary program is located in "/usr/local/bin".
My old gnuplot 4.4 is located in "usr/bin".I installed gnuplot version 4.6.6. After that the terminals "wxt" and "pngcairo" were no longer available. The time before I have been working a lot with these two terminals with version 4.4 and with very good results.
How can I get these two terminals working with gnuplot version 4.6?
I am having a problem with Cygwin Coreutils 8.14-1.
Each time I upgrade Coreutils (or have another components upgrade Coreutils for me) to version 8.14-1 commands like 'ls', 'pwd', etc. stop outputting any text. The command is accepted, but does not output any text and generates no error.
'ls' and other commands work again when I reinstall Coreutils 8.10-1.
I also receive the following messages when starting Cygwin.
-bash: [: =: unary operator expected
and
Package: coreutils
coreutils.sh exit code 127
These messages were reported in this link in Nov 2011.
http://cygwin.com/ml/cygwin/2011-11/msg00227.html
The message has no followup.
I am running Windows XP SP3.
I reinstalled "cygwin base" and coreutils using setup.exe ... things were still broken but I found C:\cygwin\bin\cygwin1.dll.new, I deleted the old cygwin1.dll and renamed this new one. Everything now works again.
When trying to install Alfresco 4.0.b in text mode on Ubuntu 10.04, I get the error:
./alfresco-community-4.0.b-installer-linux-x64.bin: 1: Syntax error: Unterminated quoted string
Is this related to the installer or Ubuntu? Some help to get it running?
Either corruption, or you are working on 32bit Operating System, use the command : uname -m to know this, if it gives something other than : x86_64 then you are not using a compatible version of UBUNTU, you have either to install a 64bit release of UBUNTU or choose the hard coded installation of Alfresco since the 4th version doesn't have a 32bit Alfresco installer.
Had the same issue but resolved it by making sure the .bin was executable by:
chmod 777 <filename>
You also need to run it as root and have './' before the filename:
$ ./alfresco-community-4.0.b-installer-linux-x64.bin
I used sh as I'm used to running shell/bash scripts. I think that's why it came up with the "unquoted string' error.
Could also have been that I used chmod +a instead of chmod 777.