سؤال

أنا أقوم بتشغيل Ubuntu 10.04 Lucid وربما كنت مخطئًا في إلغاء تثبيت RVM والآن لا تتم إزالته بالكامل من النظام.الآن أود تثبيت ذلك مرة أخرى ولكني في ورطة.

ما يحدث هو أنه تم إنشاء مخرجات غريبة عندما أحاول تنفيذ بعض أسطر الأوامر:

# Note that following command lines don't output the version
# (between the word "version" and the word "is") as it should be.

$ rvm
$ rvm -v
> -bash: /usr/local/rvm/scripts/base: No such file or directory
> A RVM version  is installed yet 1.10.3 is loaded.
>  Please do one of the following:
>   * 'rvm reload'
>   * open a new shell


# Even if I use the 'cd' command I have problems...

$ cd ..
> -bash: /usr/local/rvm/scripts/initialize: No such file or directory
> -bash: /usr/local/rvm/scripts/hook: No such file or directory

ربما يعني هذا أنه لم تتم إزالة RVM بشكل صحيح حتى لو كانت طبقات Ruby قيد التشغيل أيضًا:

$ which ruby
/usr/local/bin/ruby
$ ruby -v
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]

لذا، ما الذي يمكنني فعله لإزالة/إلغاء تثبيت RVM بالكامل؟


تحديث

لقد قمت بحل جزء من المشكلة (أو ربما جميع المشاكل):أن (هؤلاء) كانوا مرتبطين بـ Phusion Passenger الذي كان لا يزال يقوم بتحميل المسار القديم المتعلق بإصدار Ruby الذي يديره RVM.

هل كانت مفيدة؟

المحلول

RVM installs everything into ~/.rvm. To remove RVM from your system run 'rm -rf ~/.rvm'.

يشير إلى هذاأين يتم تثبيت كل شيء ل؟

نصائح أخرى

أول محاولة echo $rvm_path -إذا كان ذلك يدل على شيء- rm -rf هو - هي

ثانية:

sudo rm -rf /ust/local/rvm /etc/rvmrc /etc/profile.d/rvm.sh ~/.rvm*

الاختيار التالي ls -l /usr/local/bin | grep rvm سيُظهر هذا روابط إلى rvm - rm -rf هم

وأخيرا which rvm - إذا ظهر أي شيء فحاول التحقق من هذا المسار وإزالة هذا الملف على الأقل.

من rvm help:

implode  - (seppuku) removes the rvm installation completely.
           This means everything in $rvm_path (~/.rvm || /usr/local/rvm).
           This does not touch your profiles. However, this means that you
           must manually clean up your profiles and remove the lines which source RVM.

انطلاقا من الخاص بك $PATH يمكنك أيضًا (بدلاً من ذلك) إزالة جميع الملفات والأدلة التالية:

  • /usr/local/rvm
  • /etc/rvmrc
  • /etc/profile.d/rvm.sh
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top