From owner-freebsd-questions@freebsd.org Wed Jul 12 16:40:58 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8D764D9CEED for ; Wed, 12 Jul 2017 16:40:58 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [IPv6:2a02:1658:1::199:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "jail0199.vps.exonetric.net", Issuer "jail0199.vps.exonetric.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3C9E96ADA3 for ; Wed, 12 Jul 2017 16:40:58 +0000 (UTC) (envelope-from as@cmplx.uk) Received: from jail0199.vps.exonetric.net (jail0199.vps.exonetric.net [178.250.76.108]) by jail0199.vps.exonetric.net (8.15.2/8.15.2) with ESMTPS id v6CGetRu055239 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 12 Jul 2017 16:40:55 GMT (envelope-from as@jail0199.vps.exonetric.net) Received: (from as@localhost) by jail0199.vps.exonetric.net (8.15.2/8.15.2/Submit) id v6CGetvf055238; Wed, 12 Jul 2017 16:40:55 GMT (envelope-from as) Date: Wed, 12 Jul 2017 16:40:55 GMT From: Anton Shterenlikht Message-Id: <201707121640.v6CGetvf055238@jail0199.vps.exonetric.net> To: freebsd-questions@freebsd.org, freebsd@edvax.de Subject: Re: Error opening terminal: xterm In-Reply-To: <20170712183128.9cb516c9.freebsd@edvax.de> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Jul 2017 16:40:58 -0000 > Date: Wed, 12 Jul 2017 18:31:28 +0200 > From: Polytropon > To: Anton Shterenlikht > Subject: Re: Error opening terminal: xterm > Cc: freebsd-questions@freebsd.org > > On Wed, 12 Jul 2017 15:49:17 GMT, Anton Shterenlikht wrote: > > I'm trying to use ports-mgmt/synth. > > I get: > > > > # synth build net/mpich > > Error opening terminal: xterm. > > Is the "xterm" program installed on your machine? > Yes, I know, stupid question, but might be relevant. ;-) yes, it is, use it every day: # pkg info -xo xterm xterm-330 x11/xterm However, I never launch xterm as root, because I don't allow root access to X: # xterm Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: %s xterm: DISPLAY is not set Again John told me this error has nothing to do with X anyway. > > > Anybody has a suggestion? > > Can you manually start xterm? From within an xterm (or > whatever terminal emulator you are using)? yes, sure. > > Maybe the port in question expects /usr/bin/xterm to be > the executable ("hardcoded Linuxism")? unlikely. ports-mgmt/synth was recently strongly recommended by some experienced users in ports@ as a replacement of portmaster. So I guess this must be a well behaved port. Thanks Anton