EzDevInfo.com

upgrade interview questions

Top upgrade frequently asked interview questions

Can't update Macports (with Mac OS X Mavericks)

After upgrading Mac OS X to newest version Mavericks, I attempted to selfupdate my Macports, but it failed:

$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  210.00 bytes/sec
total size is 4925440  speedup is 46908.95
receiving file list ... done

sent 36 bytes  received 76 bytes  74.67 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.2.0 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  70.67 bytes/sec
total size is 57702400  speedup is 544362.26
receiving file list ... done

sent 36 bytes  received 77 bytes  75.33 bytes/sec
total size is 512  speedup is 4.53
receiving file list ... rsync: change_dir "tarballs/PortIndex_darwin_13_i386" (in release) failed: No such file or directory (2)
done

sent 4 bytes  received 9 bytes  26.00 bytes/sec
total size is 0  speedup is 0.00
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-42/rsync/main.c(1400) [receiver=2.6.9]
Command failed: /usr/bin/rsync -rtzv --delete-after rsync://rsync.macports.org/release/tarballs/PortIndex_darwin_13_i386/PortIndex /opt/local/var/macports/sources/rsync.macports.org/release/tarballs
Exit code: 23
--->  MacPorts base is outdated, installing new version 2.2.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking MacPorts version... 2.2.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.9
checking Xcode location... /Applications/Xcode.app/Contents/Developer
checking Xcode version... 5.0.1
checking for gcc... /usr/bin/cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
<snip>
checking CommonCrypto/CommonDigest.h presence... yes
checking for CommonCrypto/CommonDigest.h... yes
checking for readline in -lreadline... yes
checking whether rl_username_completion_function is declared... no
checking whether rl_filename_completion_function is declared... yes
checking whether rl_completion_matches is declared... yes
checking whether username_completion_function is declared... yes
checking whether filename_completion_function is declared... yes
checking whether completion_matches is declared... yes
checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions
Command failed: cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc OBJC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make SELFUPDATING=1 && make install SELFUPDATING=1
Exit code: 1
Error: Error installing new MacPorts base: command execution failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: command execution failed
$

If I just try to upgrade a particular port, it failed too:

$ sudo port upgrade emacsapp
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
Error: emacsapp is not installed
$ sudo port search emacs
Password:
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
$ sudo port upgrade emacs-app
Warning: port definitions are more than two weeks old, consider updating them by running 'port selfupdate'.
--->  Fetching archive for gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://packages.macports.org/gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://lil.fr.packages.macports.org/gperf
--->  Attempting to fetch gperf-3.0.4_2.darwin_13.x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gperf
--->  Fetching distfiles for gperf
--->  Attempting to fetch gperf-3.0.4.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/gperf
--->  Verifying checksums for gperf
--->  Extracting gperf
Error: org.macports.extract for port gperf returned: command execution failed
Please see the log file for port gperf for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gperf/gperf/main.log
Error: Problem while installing gperf
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
$

Any idea

  • if this is caused by incompatibility between OS X Mavericks and Macports?
  • how to fix it?

Edit:

I tried a different computer upgrading it from 10.8.5 to 10.9, and then try to do selfupdate for macports, it did not work again but gave a different error:

$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done
base.tar

sent 13396 bytes  received 10355 bytes  15834.00 bytes/sec
total size is 4925440  speedup is 207.38
receiving file list ... done
base.tar.rmd160

sent 64 bytes  received 635 bytes  1398.00 bytes/sec
total size is 512  speedup is 0.73
MacPorts base version 2.2.1 installed,
MacPorts base version 2.2.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from file:///opt/local/var/macports/sources/svn.macports.org/trunk/dports/
svn: E155036: Please see the 'svn upgrade' command
svn: E155036: Working copy '/opt/local/var/macports/sources/svn.macports.org/trunk/dports' is too old (format 10, created by Subversion 1.6)
Command failed: /usr/bin/svn update --non-interactive /opt/local/var/macports/sources/svn.macports.org/trunk/dports
Exit code: 1
Error: Synchronization of the local ports tree failed doing an svn update
Error: Couldn't sync the ports tree: Synchronization of 1 source(s) failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization of 1 source(s) failed

Source: (StackOverflow)

Upgrading Node.js to latest version

So, I have Node.js installed and now when I tried to install Mongoosejs I got an error telling me that I don't have the needed version of Node.js (I have v0.4.11 and v0.4.12 is needed).

How can I upgrade to this version? I suppose I just could install it again with the latest version, but I don't want to do it before I'm sure that my project folders in the folder "node" won't be deleted.


Source: (StackOverflow)

Advertisements

How to safely upgrade an Amazon EC2 instance from t1.micro to large? [closed]

I have an Amazon EC2 micro instance (t1.micro). I want to upgrade this instance to large. This is our production environment, so what is the best and risk-free way to do this?

Is there any step by step guide to do this?


Source: (StackOverflow)

How to upgrade PowerShell version from 2.0 to 3.0

The OS that I am using is Windows 7, and the PowerShell version that is installed here is 2.0. Is it possible for me to upgrade it to version 3.0 or 4.0?

Because there are cmdlets that version 2.0 can't recognize.


Source: (StackOverflow)

How to trust a apt repository : Debian apt-get update error public key is not available: NO_PUBKEY [closed]

Trying to update some repositories on Debian Etch installation and getting the following errors from running "apt-get update"

W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907
W: You may want to run apt-get update to correct these problems

The irony of it instructing me to run apt-get update is a nice kicker...


Source: (StackOverflow)

How do I update pip itself from inside my virtual environment?

I'm able to update pip-managed packages, but how do I update pip itself? According to pip --version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version.

What's the command for that? Do I need to use distribute or is there a native pip or virtualenv command? I've already tried pip update and pip update pip with no success.


Source: (StackOverflow)

Upgrade NodeJS to the latest version on Mac os

I am currently using NodeJS v0.6.16 on mac os x 10.7.4. Now I want to upgrade it to the latest NodeJS v0.8.1. But after downloading and installing the latest pkg file from nodejs.org, I find the system is still using v0.6.16 instead of v0.8.1 when I typed "node -v" in a terminal. Is there any step that I have missed? Or should I thoroughly uninstall the old version before installing the latest one?

BTW, I know that nvm can help to manage the nodejs package

https://github.com/creationix/nvm/

Is there any means to upgrade the nodejs without using it?

I have googled this problem, but it seems to me that there is no very clear answer to this question for the latest NodeJS. Many thanks.


Source: (StackOverflow)

Painless way to install a new version of R?

Andrew Gelman recently lamented the lack of an easy upgrade process for R (probably more relevant on Windows that Linux). Does anyone have a good trick for doing the upgrade, from installing the software to copying all the settings/packages over?

This suggestion was contained in the comments and is what I've been using recently. First you install the new version, then run this in the old verion:

#--run in the old version of R
setwd("C:/Temp/")
packages <- installed.packages()[,"Package"]
save(packages, file="Rpackages")

Followed by this in the new version:

#--run in the new version
setwd("C:/Temp/")
load("Rpackages")
for (p in setdiff(packages, installed.packages()[,"Package"]))
install.packages(p)

Source: (StackOverflow)

How best to convince people to upgrade IE?

I recently asked a question that got shot down for being too strongly worded. I'm having another go today because it's something I really am concerned about and I really do want feedback and ideas from the smart people on SO.

IE6 isn't quite the bane of my existence, but it's close. I'm a web-developer and spend too much time fixing things for IE6. Considering its age and relative quality, I'm shocked so many people are still using it.

I understand that some companies still use it for legacy internal webapp support but I've found two companies now that haven't upgraded solely because XP's automatic updates doesn't offer it by default (you have to go through the browser-based Windows Update to install IE7/8).

So forgetting those that need it, how would you convince an individual or organisation to upgrade to a newer version of IE?

Do warning banners work? I've considered skipping doing the IE6-fixing before and putting a "This site works best in..." statement up but surely having a poorly-rendered site makes me and/or my client look bad, not IE6.

There are also people who don't need to keep IE6 but cannot upgrade because they're in a controlled environment. What is the best way to influence them enough to get their admins to do something about the problem?

Note: As I said last time, I don't care about moving these people to another browser. I don't mind giving them the option but this certainly isn't supposed to be a Firefox/FOSS uber-alles thread.

I'm also not looking for a fight, just constructive ideas on making business types aware of browser technologies in the least damaging way.

Edit: There are a couple of "you can't force it" answers. I agree, but I feel I could influence it. I tell people when I see IE6 but I'm not sitting behind every IE6 user that accesses a site I've made.

Consider health warnings on cigarettes. They don't force people to stop smoking but they do educate in a succinct and (nowadays) fairly brutal way. There's no doubt that educating people has had a massive effect on the numbers of smokers.

IE6 is a lot less addictive than smoking so, yeah, pushing the education idea seems like it might be able to influence the right people to do the right thing.


Source: (StackOverflow)

Reasons and advantages for upgrading to Java 6 for a non-technical decider (at the client)

I'd like to upgrade from Java 5 to Java 6. We all know about the technical advantages and benefits, but:

I have the problem that a major client refuses to upgrade from java 5 to java 6 because of "the risks" and "no/too few benefits for us" (banking sector).

What can be answered to a non-technical decider at the client what benefits he'll get from an upgrade - or otherwise which problems/consequences may arise if he'll stay with java 5?

It's not a "fire and forget"-product, it's activly extended with new functionality/features - the development is and will be constantly going on - the dev team would definitly benefit from the jdk 6 features/tools.

EDIT: The reached EOL of Java 5 is a valid point indeed, but it doesn't convince the client because he is using the IBM JRE/JDK 5, which seems that it has not reached its end of life yet. And, beside that the client stated: "Java 5 is running fine for years and its unlikely that new, unseen problems arise"


Source: (StackOverflow)

How to upgrade to ruby 1.9.2

mac os x how to upgrade to ruby 1.9.2


Source: (StackOverflow)

Upgrade from jQuery 1.x to jQuery 2.x

I am trying to upgrade from jQuery 1.x to jQuery 2.x.

I have jQuery 1.8 and jQueryUI 1.8, and now I want to upgrade to jQuery 2.x and enhance my web app.

So my question is what to change and remove, like for Ajax and events.

Like these errors I am talking about

Uncaught TypeError: Object [object Object] has no method 'live'

Did functions like .on() and .ajax() change any? (I know .live was deprecated).

P.S. I have to add Zurb Foundation 5 which uses jQuery 2.


Source: (StackOverflow)

upgrade eclipse to java 8

I am trying to update my eclipse environment to java 8. I installed the jdk and jre version 8. I also did this:

https://wiki.eclipse.org/JDT/Eclipse_Java_8_Support_For_Kepler

then in project -> properties -> java build path -> JRE system libraries -> edit -> execution environment -> JavaSE-1.8(unbound) which is the only option that has java 8 in its name. but when I select it it says : No JREs in workspace compatible with specified execution environment: JavaSE-1.8


Source: (StackOverflow)

I want my C# Windows Service to automatically update itself

Is there a framework that can be used to enable a C# Windows Service to automatically check for a newer version and upgrade itself? I can certainly write code to accomplish this, but I am looking for a framework that has already been implemented and (most importantly) tested.

[edit] Here is a link to a similar question with links to modern projects that help accomplish this: Auto-update library for .NET?


Source: (StackOverflow)

MS VS 2010: change language settings from de to en

recently i have installed MS Visual Studio 2010 Professional as an upgrade from 2005. I wanted to use the english version but after installation it's german(2005 was english if that matters).

I tried to change it via Extras/Options/Environment/International Settings to "Same as Microsoft Windows"(what is english) and restarted IDE (and system) but the change was not applied at all. There are only two options: german and same as windows.

Facts:

  • MS Visual Studio 2010 professional(upgrade from 2005 Professional) german
  • OS is Windows XP(english)
  • german is default input language(control-panel/regional.../languages/details), changed but without any effect

Did i miss something in the setup of the installation or do i have to install a language-pack?


Edit: i have tried Rob's suggestion to deinstall Visual Studio and all of its components, install the english .net 4.0 framework and reinstall Visual Studio, but unfortunately without the desired result. It is german again with no chance to switch to english. The installation routine seems to overwrite the framework and replaces it with the DEU-languagepack.

Is it really impossible to change the IDE language-settings without installing an english version first? Is it at least possible to get english error-messages from the framework?

By the way, am i the only person that wonders why i need an english version first to be able to switch languages? Why should i then order any other language than EN at all?

Thank you in advance.


Source: (StackOverflow)