Thread Perl auf Solaris updaten (17 answers)
Opened by bianca at 2015-11-20 18:38

bianca
 2015-11-22 07:48
#183027 #183027
User since
2009-09-13
6975 Artikel
BenutzerIn

user image
2015-11-21T13:49:52 GwenDragon
Wohin ist perlbrew installiert? Nach /opt/perlbrew/ oder wie? Wo liegt denn das Perlprogramm perlbrew?

Hier:
Quote
# cd /perl5
# cd perlbrew
# ls -l
total 15
drwxr-xr-x 2 root root 4 Nov 22 06:06 bin
drwxr-xr-x 2 root root 2 Nov 21 08:28 build
drwxr-xr-x 2 root root 2 Nov 21 08:28 dists
drwxr-xr-x 2 root root 9 Nov 21 08:28 etc
drwxr-xr-x 2 root root 2 Nov 21 08:28 perls
# cd bin
# ls -l
total 3082
-rwxr-xr-x 1 root root 1201154 Nov 22 06:06 patchperl
-rwxr-xr-x 1 root root 198244 Nov 22 06:06 perlbrew


2015-11-21T13:49:52 GwenDragon
Das Verzeichnis muss du in deiner eigenen .profile des eingeloggten Kontos ändern, nicht in der globalen /etc/profile.
Und dann nochmals ausloggen und einloggen.

In der /etc/profile steht ganz oben
Quote
The profile that all logins get before using their own .profile

Und die Änderung in der globalen hat auch geklappt, es fehlte nur noch das Unterverzeichnis /bin im Pfad.

Weiterhin musste ich in der PATH Variable noch das Verzeichnis /usr/sfw/bin ergänzen, damit der Compiler gefunden wird, Test:
Quote
# gcc -dumpversion
3.4.3


Trotzdem wurde ich jäh ausgebremst :)
Und zwar steht in der //perl5/perlbrew/build.perl-5.18.2.log ganz unten:
Quote
Use which C compiler? [cc]
/usr/ucb/cc: language optional software package not installed
Uh-oh, the C compiler 'cc' doesn't seem to be working.

You seem to have a working gcc, though.

*** However, any setting of the C compiler flags (e.g. for thread support)
*** will be lost. It may be necessary for you to restart Configure and
*** add -Dcc=gcc to your Configure command line.

Would you like to go ahead and try gcc anyway? [n]
/usr/ucb/cc: language optional software package not installed
Uh-oh, the C compiler 'cc' doesn't seem to be working.
You need to find a working C compiler.
Either (purchase and) install the C compiler supplied by your OS vendor,
or for a free C compiler try http://gcc.gnu.org/
I cannot continue any further, aborting.

Das sieht mir so aus als gäbe es eine Art Script welches die Fragen von Perl beantwortet. Und die Antwort auf die Compilerfrage ist falsch. Da muss gcc hin.
Wie kann ich denn diese Antwort ändern?
10 print "Hallo"
20 goto 10

View full thread Perl auf Solaris updaten