From owner-freebsd-questions@FreeBSD.ORG Sat Aug 7 21:25:31 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D80D1065670 for ; Sat, 7 Aug 2010 21:25:31 +0000 (UTC) (envelope-from eb30750@gmail.com) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E5D208FC16 for ; Sat, 7 Aug 2010 21:25:30 +0000 (UTC) Received: by gxk24 with SMTP id 24so3962588gxk.13 for ; Sat, 07 Aug 2010 14:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:references:from :content-type:x-mailer:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=dhLN/JCzUEFMhf/nWprlbuEyJpxaxBnj2JLjpCenz8g=; b=DVTNMc/eApGFn9Qd7xHM/iRsJLFisFM7n0KAnJhc9ujRW3A+DHA3JO19vYAowOKfrs cjiGR2BsEDUX2O2S8158MY94QFNGCakNWALC546oSXeGDfl5ljoZL7bUDg8gU79FFXGD AYA4YTqXdlQR2c0s79huWzJmyJ2qjx+aJNPYU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:references:from:content-type:x-mailer:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; b=ID+EBQqNXZ9vMEVChk5F+k82muLNqcad6x4rNpSAX0+upKqjILIhDwIFx/oMlDi8ao Yt1jJNKFjk+829VEs7d0p/+CSWjJDtPtVC5N/OiHb8fFSmhEw1bk4r5Bn57rF8wCwRRj +UZlRoiOTSdTspThROZlu3pNwftCzuhnVbjRc= Received: by 10.151.41.7 with SMTP id t7mr8039888ybj.140.1281216330041; Sat, 07 Aug 2010 14:25:30 -0700 (PDT) Received: from [192.168.1.2] (173-104-143-221.pools.spcsdns.net [173.104.143.221]) by mx.google.com with ESMTPS id q21sm3004611ybk.11.2010.08.07.14.25.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 07 Aug 2010 14:25:29 -0700 (PDT) References: <201008072042.o77Kg2Gj017101@lurza.secnetix.de> From: Paul Content-Type: text/plain; charset=utf-8 X-Mailer: iPod Mail (8A293) In-Reply-To: <201008072042.o77Kg2Gj017101@lurza.secnetix.de> Message-Id: <9B247D49-380E-400D-B1B5-877BCAAC2120@gmail.com> Date: Sat, 7 Aug 2010 17:24:32 -0400 To: "freebsd-questions@FreeBSD.ORG" , "eb30750@gmail.com" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (iPod Mail 8A293) Cc: Subject: Re: misc/149335: shell script runs on Linux but not on freebsd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2010 21:25:31 -0000 Thanks Oliver=20 I can just get the i386 vmware version and should install and run. Last que= stion is there a x86_64 bit Linux module? Is one I'm development? Sent from my iPod On Aug 7, 2010, at 4:42 PM, Oliver Fromme wrote: > Sorry for the late reply, I don't have much time currently. >=20 > Maybe someone else from the -questions list can jump in, > because I don't have much experience with vmware (I prefer > qemu or virtual box). >=20 > Paul Lambert wrote: >> Thanks for the reply. I am attaching the bash output from the shell >> script. This script implements RPMs so I am sure that I need the linux >> module. I had previously found a guide on how to install RPMs on FreeBSD= . >> I have a printer that has an RPM that allows it to work on Linus. So I >> would think that I will need the Linux module in the future. >>=20 >> I previously had made the "stat" change to the shell script and that part= >> works. But, the bash shell is reporting an 'od" error. >>=20 >> Finally, how much performance do you lose with the linux module emulator?= >=20 > Not much, probably none at all. Some people even say that > Linux binaries run faster on FreeBSD than they run on Linux, > because they benefit from the better network code and VM > system. >=20 > Anyway, the "linuxulator" isn't really an emulator, it's > rather an ABI-level compatibility layer, very similar to > the i386 (32bit) compatibility layer on FreeBSD/amd64 (64bit). >=20 >> Do you believe I only need the emulator to get VMware installed or will i= t >> make other linux calls that are not part of FreeBSD? >=20 > I'm afraid you won't be able to install vmware this way. > I suggest you look at the emulator/vmware* ports in the > ports collection. >=20 >> BRSINC-VM02# bash -vx VMware-Player-3.1.0-261024.x86_64.bundle >> [...] >> # XXX: put extraction in its own function >> MAGIC_NUMBER=3D`od -An -t u4 -N 4 -aj=20 >> $MAGIC_OFFSET "$file" | tr -d ' '` >=20 > There's a bogus line break which is causing this particular > parsing error. Either join the lines, or put a backslash > at the end of the first line (behind -aj). >=20 > But I'm afraid this is the smallest of the problems. > I suspect you won't be able to get this script to run > correctly on FreeBSD, because it seems to do too many > linux-specific things. >=20 > Best regards > Oliver >=20 > --=20 > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, Gesch=C3=A4ftsfuehr= ung: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M=C3=BC= n- > chen, HRB 125758, Gesch=C3=A4ftsf=C3=BChrer: Maik Bachmann, Olaf Erb, Ral= f Gebhart >=20 > FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd >=20 > "And believe me, as a C++ programmer, I don't hesitate to question > the decisions of language designers. After a decent amount of C++ > exposure, Python's flaws seem ridiculously small." -- Ville Vainio