Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

VMware, chicken & egg ?

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
7 posts • Page 1 of 1
Author
Message
suredeath
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Tue Aug 15, 2006 10:30 am
Location: Easterwood, N.Br., The Netherlands
Contact:
Contact suredeath
Website

VMware, chicken & egg ?

  • Quote

Post by suredeath » Sat Sep 02, 2006 4:00 pm

I have installed vmware-workstation and the mandatory vmware-modules.

If I run vmware-config.pl it complains vmware has not been started yet.
If I try to start vmware (/etc/init.d/vmware start) it complains vmware isn't properly configured for my kernel and suggests I install the modules first (I did that, duhh) and/or to run vmware-config.pl

See the predicament? Any clues?
THX!
Top
Vitaliy
Guru
Guru
User avatar
Posts: 451
Joined: Tue Apr 06, 2004 1:19 am
Location: Brooklyn, NY

  • Quote

Post by Vitaliy » Sat Sep 02, 2006 4:11 pm

After running vmware-config.pl and completing it, try doing rm /etc/vmware/not-configred, then running /etc/init.d/vmware start.
Top
suredeath
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Tue Aug 15, 2006 10:30 am
Location: Easterwood, N.Br., The Netherlands
Contact:
Contact suredeath
Website

VMware service started, config.pl executed, now...

  • Quote

Post by suredeath » Sun Sep 03, 2006 5:47 pm

That worked, after I started the service, the first attempt to run vmware resulted in a load of missing files, which was understandable, since vmware-config.pl wasn't run. So I ran vmware-config.pl (as root), which did not complain.

Giving vmware a second try I get the following error:
/opt/vmware/workstation/lib/bin/vmware: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_GlyphSlot_Embolden

I'm not educated (enough) to know how to proceed from here. But thanks for the help sofar!
Top
CompNerd
Retired Dev
Retired Dev
User avatar
Posts: 311
Joined: Sun Mar 16, 2003 8:02 pm
Location: 127.0.0.1

  • Quote

Post by CompNerd » Mon Sep 04, 2006 12:09 am

LD_PRELOAD the needed libraries from the bundled install.
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

Re: VMware service started, config.pl executed, now...

  • Quote

Post by devsk » Mon Sep 04, 2006 7:46 am

suredeath wrote:That worked, after I started the service, the first attempt to run vmware resulted in a load of missing files, which was understandable, since vmware-config.pl wasn't run. So I ran vmware-config.pl (as root), which did not complain.

Giving vmware a second try I get the following error:
/opt/vmware/workstation/lib/bin/vmware: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_GlyphSlot_Embolden

I'm not educated (enough) to know how to proceed from here. But thanks for the help sofar!
are you running /opt/vmware/workstation/lib/bin/vmware directly? I think you are missing a wrapper script (something like /opt/vmware/workstation/bin/vmware) which will setup LD_LIBRARY_PATH etc. or preload the libraries from vmware install, and NOT from /usr/lib. libcairo from /usr is not going to work with vmware.
Top
suredeath
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 101
Joined: Tue Aug 15, 2006 10:30 am
Location: Easterwood, N.Br., The Netherlands
Contact:
Contact suredeath
Website

  • Quote

Post by suredeath » Mon Sep 04, 2006 1:16 pm

Code: Select all

which vmware
/opt/vmware/workstation/bin/vmware
I browsed through the script, but I admit I don't really understand what it does with all the memory db related functions.
Here's what it looks like:

Code: Select all

#!/bin/sh
#
# Copyright 2005 VMware, Inc.  All rights reserved.
#
# Wrapper for the real 'vmware' binary. Ensure that the binary will find
# all the shared libraries it needs. If a shared library is not available from any
# of the standard system-wide locations, we provide it from the location where
# the VMware software is installed. --hpreg
#

# BEGINNING_OF_DB_DOT_SH
#!/bin/sh

#
# Manage an installer database
#

# Add an answer to a database in memory
db_answer_add() {
  local dbvar="$1" # IN/OUT
  local id="$2"    # IN
  local value="$3" # IN
  local answers
  local i

  eval "$dbvar"'_answer_'"$id"'="$value"'

  eval 'answers="$'"$dbvar"'_answers"'
  # There is no double quote around $answers on purpose
  for i in $answers; do
    if [ "$i" = "$id" ]; then
      return
    fi
  done
  answers="$answers"' '"$id"
  eval "$dbvar"'_answers="$answers"'
}

# Remove an answer from a database in memory
db_answer_remove() {
  local dbvar="$1" # IN/OUT
  local id="$2"    # IN
  local new_answers
  local answers
  local i

  eval 'unset '"$dbvar"'_answer_'"$id"

  new_answers=''
  eval 'answers="$'"$dbvar"'_answers"'
  # There is no double quote around $answers on purpose
  for i in $answers; do
    if [ "$i" != "$id" ]; then
      new_answers="$new_answers"' '"$i"
    fi
  done
  eval "$dbvar"'_answers="$new_answers"'
}

# Load all answers from a database on stdin to memory (<dbvar>_answer_*
# variables)
db_load_from_stdin() {
  local dbvar="$1" # OUT

  eval "$dbvar"'_answers=""'

  # read doesn't support -r on FreeBSD 3.x. For this reason, the following line
  # is patched to remove the -r in case of FreeBSD tools build. So don't make
  # changes to it. -- Jeremy Bar
  while read -r action p1 p2; do
    if [ "$action" = 'answer' ]; then
      db_answer_add "$dbvar" "$p1" "$p2"
    elif [ "$action" = 'remove_answer' ]; then
      db_answer_remove "$dbvar" "$p1"
    fi
  done
}

# Load all answers from a database on disk to memory (<dbvar>_answer_*
# variables)
db_load() {
  local dbvar="$1"  # OUT
  local dbfile="$2" # IN

  db_load_from_stdin "$dbvar" < "$dbfile"
}

# Iterate through all answers in a database in memory, calling <func> with
# id/value pairs and the remaining arguments to this function
db_iterate() {
  local dbvar="$1" # IN
  local func="$2"  # IN
  shift 2
  local answers
  local i
  local value

  eval 'answers="$'"$dbvar"'_answers"'
  # There is no double quote around $answers on purpose
  for i in $answers; do
    eval 'value="$'"$dbvar"'_answer_'"$i"'"'
    "$func" "$i" "$value" "$@"
  done
}

# If it exists in memory, remove an answer from a database (disk and memory)
db_remove_answer() {
  local dbvar="$1"  # IN/OUT
  local dbfile="$2" # IN
  local id="$3"     # IN
  local answers
  local i

  eval 'answers="$'"$dbvar"'_answers"'
  # There is no double quote around $answers on purpose
  for i in $answers; do
    if [ "$i" = "$id" ]; then
      echo 'remove_answer '"$id" >> "$dbfile"
      db_answer_remove "$dbvar" "$id"
      return
    fi
  done
}

# Add an answer to a database (disk and memory)
db_add_answer() {
  local dbvar="$1"  # IN/OUT
  local dbfile="$2" # IN
  local id="$3"     # IN
  local value="$4"  # IN

  db_remove_answer "$dbvar" "$dbfile" "$id"
  echo 'answer '"$id"' '"$value" >> "$dbfile"
  db_answer_add "$dbvar" "$id" "$value"
}

# Add a file to a database on disk
# 'file' is the file to put in the database (it may not exist on the disk)
# 'tsfile' is the file to get the timestamp from, '' if no timestamp
db_add_file() {
  local dbfile="$1" # IN
  local file="$2"   # IN
  local tsfile="$3" # IN
  local date

  if [ "$tsfile" = '' ]; then
    echo 'file '"$file" >> "$dbfile"
  else
    date=`date -r "$tsfile" '+%s' 2> /dev/null`
    if [ "$date" != '' ]; then
      date=' '"$date"
    fi
    echo 'file '"$file$date" >> "$dbfile"
  fi
}

# Add a directory to a database on disk
db_add_dir() {
  local dbfile="$1" # IN
  local dir="$2"    # IN

  echo 'directory '"$dir" >> "$dbfile"
}
# END_OF_DB_DOT_SH

db_load 'vm_db' '/etc/vmware/locations'

if [ -e '/etc/vmware/not_configured' ]; then
   echo 'vmware is installed, but it has not been (correctly) configured'
   echo 'for this system. To (re-)configure it, invoke the following command:'
   echo "$vm_db_answer_BINDIR"'/vmware-config.pl.'
   echo

   exit 1
fi
                                                                       
exec "$vm_db_answer_LIBDIR"'/lib/wrapper-gtk24.sh' \
     "$vm_db_answer_LIBDIR"'/lib' \
     "$vm_db_answer_LIBDIR"'/bin/vmware' \
     "$vm_db_answer_LIBDIR"'/libconf' "$@"
I am not sure how to a) see if/how this script sets all the right paths to the required libs, or loads them, or both, or different.
LD_PRELOAD the needed libraries from the bundled install.
That also is a bit too cryptic still for me. I am learning, I really try to get this stuff under my belt, but it's a challenge I admit!
Top
devsk
Advocate
Advocate
User avatar
Posts: 3039
Joined: Fri Oct 24, 2003 1:16 am
Location: Bay Area, CA

  • Quote

Post by devsk » Mon Sep 04, 2006 5:35 pm

so, you got that error with just:

Code: Select all

 # vmware
Top
Post Reply

7 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic